Methods Summary |
---|
public void | _parseDetails(java.nio.ByteBuffer content)
parseVersionAndFlags(content);
schemeType = IsoTypeReader.read4cc(content);
schemeVersion = IsoTypeReader.readUInt32(content);
if ((getFlags() & 1) == 1) {
schemeUri = IsoTypeReader.readString(content);
}
|
protected void | getContent(java.nio.ByteBuffer byteBuffer)
writeVersionAndFlags(byteBuffer);
byteBuffer.put(IsoFile.fourCCtoBytes(schemeType));
IsoTypeWriter.writeUInt32(byteBuffer, schemeVersion);
if ((getFlags() & 1) == 1) {
byteBuffer.put(Utf8.convert(schemeUri));
}
|
protected long | getContentSize()
return 12 + (((getFlags() & 1) == 1) ? Utf8.utf8StringLengthInBytes(schemeUri) + 1 : 0);
|
public java.lang.String | getSchemeType()
return schemeType;
|
public java.lang.String | getSchemeUri()
return schemeUri;
|
public long | getSchemeVersion()
return schemeVersion;
|
public void | setSchemeType(java.lang.String schemeType)
assert schemeType != null && schemeType.length() == 4 : "SchemeType may not be null or not 4 bytes long";
this.schemeType = schemeType;
|
public void | setSchemeUri(java.lang.String schemeUri)
this.schemeUri = schemeUri;
|
public void | setSchemeVersion(int schemeVersion)
this.schemeVersion = schemeVersion;
|
public java.lang.String | toString()
StringBuilder buffer = new StringBuilder();
buffer.append("Schema Type Box[");
buffer.append("schemeUri=").append(schemeUri).append("; ");
buffer.append("schemeType=").append(schemeType).append("; ");
buffer.append("schemeVersion=").append(schemeUri).append("; ");
buffer.append("]");
return buffer.toString();
|