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

CopyrightBox

public class CopyrightBox extends com.googlecode.mp4parser.AbstractFullBox
The copyright box contains a copyright declaration which applies to the entire presentation, when contained within the MovieBox, or, when contained in a track, to that entire track. There may be multple boxes using different language codes.
see
MovieBox
see
TrackBox

Fields Summary
public static final String
TYPE
private String
language
private String
copyright
Constructors Summary
public CopyrightBox()


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

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

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

        return 7 + Utf8.utf8StringLengthInBytes(copyright);
    
public java.lang.StringgetCopyright()

        return copyright;
    
public java.lang.StringgetLanguage()

        return language;
    
public voidsetCopyright(java.lang.String copyright)

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

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

        return "CopyrightBox[language=" + getLanguage() + ";copyright=" + getCopyright() + "]";