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

DescriptionBox

public class DescriptionBox extends com.googlecode.mp4parser.AbstractFullBox
Gives a language dependent description of the media contained in the ISO file.

Fields Summary
public static final String
TYPE
private String
language
private String
description
Constructors Summary
public DescriptionBox()


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

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

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

        return 7 + Utf8.utf8StringLengthInBytes(description);
    
public java.lang.StringgetDescription()

        return description;
    
public java.lang.StringgetLanguage()

        return language;
    
public voidsetDescription(java.lang.String description)

        this.description = description;
    
public voidsetLanguage(java.lang.String language)

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

        return "DescriptionBox[language=" + getLanguage() + ";description=" + getDescription() + "]";