Methods Summary |
---|
public void | _parseDetails(java.nio.ByteBuffer content)
parseVersionAndFlags(content);
shouldBeZeroButAppleWritesHereSomeValue = IsoTypeReader.readUInt32(content);
handlerType = IsoTypeReader.read4cc(content);
a = IsoTypeReader.readUInt32(content);
b = IsoTypeReader.readUInt32(content);
c = IsoTypeReader.readUInt32(content);
if (content.remaining() > 0) {
name = IsoTypeReader.readString(content, content.remaining());
if (name.endsWith("\0")) {
name = name.substring(0, name.length() - 1);
zeroTerm = true;
} else {
zeroTerm = false;
}
} else {
zeroTerm = false; //No string at all, not even zero term char
}
|
protected void | getContent(java.nio.ByteBuffer byteBuffer)
writeVersionAndFlags(byteBuffer);
IsoTypeWriter.writeUInt32(byteBuffer, shouldBeZeroButAppleWritesHereSomeValue);
byteBuffer.put(IsoFile.fourCCtoBytes(handlerType));
IsoTypeWriter.writeUInt32(byteBuffer, a);
IsoTypeWriter.writeUInt32(byteBuffer, b);
IsoTypeWriter.writeUInt32(byteBuffer, c);
if (name != null) {
byteBuffer.put(Utf8.convert(name));
}
if (zeroTerm) {
byteBuffer.put((byte) 0);
}
|
protected long | getContentSize()
if (zeroTerm) {
return 25 + Utf8.utf8StringLengthInBytes(name);
} else {
return 24 + Utf8.utf8StringLengthInBytes(name);
}
|
public java.lang.String | getHandlerType()
return handlerType;
|
public java.lang.String | getHumanReadableTrackType()
return readableTypes.get(handlerType) != null ? readableTypes.get(handlerType) : "Unknown Handler Type";
|
public java.lang.String | getName()
return name;
|
public void | setHandlerType(java.lang.String handlerType)
this.handlerType = handlerType;
|
public void | setName(java.lang.String name)You are required to add a '\0' string termination by yourself.
this.name = name;
|
public java.lang.String | toString()
return "HandlerBox[handlerType=" + getHandlerType() + ";name=" + getName() + "]";
|