FileDocCategorySizeDatePackage
TitleBox.javaAPI Docmp4parser 1.0-RC-172326Wed Dec 19 20:10:38 GMT 2012com.coremedia.iso.boxes

TitleBox

public class TitleBox extends com.googlecode.mp4parser.AbstractFullBox
Box Type: 'titl'
Container: {@link UserDataBox} ('udta')
Mandatory: No
Quantity: Zero or one

Title for the media.

Fields Summary
public static final String
TYPE
private String
language
private String
title
Constructors Summary
public TitleBox()


      
        super(TYPE);
    
Methods Summary
public void_parseDetails(java.nio.ByteBuffer content)

        parseVersionAndFlags(content);
        language = IsoTypeReader.readIso639(content);
        title = IsoTypeReader.readString(content);
    
protected voidgetContent(java.nio.ByteBuffer byteBuffer)

        writeVersionAndFlags(byteBuffer);
        IsoTypeWriter.writeIso639(byteBuffer, language);
        byteBuffer.put(Utf8.convert(title));
        byteBuffer.put((byte) 0);
    
protected longgetContentSize()

        return 7 + Utf8.utf8StringLengthInBytes(title);
    
public java.lang.StringgetLanguage()

        return language;
    
public java.lang.StringgetTitle()

        return title;
    
public voidsetLanguage(java.lang.String language)
Sets the 3-letter ISO-639 language for this title.

param
language 3-letter ISO-639 code

        this.language = language;
    
public voidsetTitle(java.lang.String title)

        this.title = title;
    
public java.lang.StringtoString()

        return "TitleBox[language=" + getLanguage() + ";title=" + getTitle() + "]";