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

AuthorBox

public class AuthorBox extends com.googlecode.mp4parser.AbstractFullBox
Meta information in a 'udta' box about a track. Defined in 3GPP 26.244.
see
com.coremedia.iso.boxes.UserDataBox

Fields Summary
public static final String
TYPE
private String
language
private String
author
Constructors Summary
public AuthorBox()


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

        parseVersionAndFlags(content);
        language = IsoTypeReader.readIso639(content);
        author = IsoTypeReader.readString(content);
    
public java.lang.StringgetAuthor()
Author information.

return
the author

        return author;
    
protected voidgetContent(java.nio.ByteBuffer byteBuffer)

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

        return 7 + Utf8.utf8StringLengthInBytes(author);
    
public java.lang.StringgetLanguage()
Declares the language code for the {@link #getAuthor()} return value. See ISO 639-2/T for the set of three character codes.Each character is packed as the difference between its ASCII value and 0x60. The code is confined to being three lower-case letters, so these values are strictly positive.

return
the language code

        return language;
    
public voidsetAuthor(java.lang.String author)

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

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

        return "AuthorBox[language=" + getLanguage() + ";author=" + getAuthor() + "]";