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

GenreBox

public class GenreBox extends com.googlecode.mp4parser.AbstractFullBox
Containing genre information and contained in the UserDataBox.
see
com.coremedia.iso.boxes.UserDataBox

Fields Summary
public static final String
TYPE
private String
language
private String
genre
Constructors Summary
public GenreBox()


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

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

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

        return 7 + Utf8.utf8StringLengthInBytes(genre);
    
public java.lang.StringgetGenre()

        return genre;
    
public java.lang.StringgetLanguage()

        return language;
    
public voidsetGenre(java.lang.String genre)

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

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

        return "GenreBox[language=" + getLanguage() + ";genre=" + getGenre() + "]";