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

ClassificationBox

public class ClassificationBox extends com.googlecode.mp4parser.AbstractFullBox
Classification of the media according to 3GPP 26.244.

Fields Summary
public static final String
TYPE
private String
classificationEntity
private int
classificationTableIndex
private String
language
private String
classificationInfo
Constructors Summary
public ClassificationBox()


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

        parseVersionAndFlags(content);
        byte[] cE = new byte[4];
        content.get(cE);
        classificationEntity = IsoFile.bytesToFourCC(cE);
        classificationTableIndex = IsoTypeReader.readUInt16(content);
        language = IsoTypeReader.readIso639(content);
        classificationInfo = IsoTypeReader.readString(content);
    
public java.lang.StringgetClassificationEntity()

        return classificationEntity;
    
public java.lang.StringgetClassificationInfo()

        return classificationInfo;
    
public intgetClassificationTableIndex()

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

        byteBuffer.put(IsoFile.fourCCtoBytes(classificationEntity));
        IsoTypeWriter.writeUInt16(byteBuffer, classificationTableIndex);
        IsoTypeWriter.writeIso639(byteBuffer, language);
        byteBuffer.put(Utf8.convert(classificationInfo));
        byteBuffer.put((byte) 0);
    
protected longgetContentSize()

        return 4 + 2 + 2 + Utf8.utf8StringLengthInBytes(classificationInfo) + 1;
    
public java.lang.StringgetLanguage()

        return language;
    
public voidsetClassificationEntity(java.lang.String classificationEntity)

        this.classificationEntity = classificationEntity;
    
public voidsetClassificationInfo(java.lang.String classificationInfo)

        this.classificationInfo = classificationInfo;
    
public voidsetClassificationTableIndex(int classificationTableIndex)

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

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

        StringBuilder buffer = new StringBuilder();
        buffer.append("ClassificationBox[language=").append(getLanguage());
        buffer.append("classificationEntity=").append(getClassificationEntity());
        buffer.append(";classificationTableIndex=").append(getClassificationTableIndex());
        buffer.append(";language=").append(getLanguage());
        buffer.append(";classificationInfo=").append(getClassificationInfo());
        buffer.append("]");
        return buffer.toString();