FileDocCategorySizeDatePackage
Mp4NameBox.javaAPI DocJaudiotagger 2.0.41511Wed Mar 30 16:12:08 BST 2011org.jaudiotagger.tag.mp4.atom

Mp4NameBox

public class Mp4NameBox extends org.jaudiotagger.audio.mp4.atom.AbstractMp4Box
This box is used within ---- boxes to hold the data name/descriptor

Fields Summary
public static final String
IDENTIFIER
private String
name
public static final int
VERSION_LENGTH
public static final int
FLAGS_LENGTH
public static final int
PRE_DATA_LENGTH
Constructors Summary
public Mp4NameBox(org.jaudiotagger.audio.mp4.atom.Mp4BoxHeader header, ByteBuffer dataBuffer)

param
header parentHeader info
param
dataBuffer data of box (doesnt include parentHeader data)


                          
        
    
        this.header = header;

        //Double check
        if (!header.getId().equals(IDENTIFIER))
        {
            throw new RuntimeException("Unable to process name box because identifier is:" + header.getId());
        }

        //Make slice so operations here don't effect position of main buffer
        this.dataBuffer = dataBuffer.slice();

        //issuer
        this.name = Utils.getString(this.dataBuffer, PRE_DATA_LENGTH, header.getDataLength() - PRE_DATA_LENGTH, header.getEncoding());
    
Methods Summary
public java.lang.StringgetName()

        return name;