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.String | getClassificationEntity()
return classificationEntity;
|
public java.lang.String | getClassificationInfo()
return classificationInfo;
|
public int | getClassificationTableIndex()
return classificationTableIndex;
|
protected void | getContent(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 long | getContentSize()
return 4 + 2 + 2 + Utf8.utf8StringLengthInBytes(classificationInfo) + 1;
|
public java.lang.String | getLanguage()
return language;
|
public void | setClassificationEntity(java.lang.String classificationEntity)
this.classificationEntity = classificationEntity;
|
public void | setClassificationInfo(java.lang.String classificationInfo)
this.classificationInfo = classificationInfo;
|
public void | setClassificationTableIndex(int classificationTableIndex)
this.classificationTableIndex = classificationTableIndex;
|
public void | setLanguage(java.lang.String language)
this.language = language;
|
public java.lang.String | toString()
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();
|