Methods Summary |
---|
public void | _parseDetails(java.nio.ByteBuffer content)
majorBrand = IsoTypeReader.read4cc(content);
minorVersion = IsoTypeReader.readUInt32(content);
int compatibleBrandsCount = content.remaining() / 4;
compatibleBrands = new LinkedList<String>();
for (int i = 0; i < compatibleBrandsCount; i++) {
compatibleBrands.add(IsoTypeReader.read4cc(content));
}
|
public java.util.List | getCompatibleBrands()Gets an array of 4-cc brands.
return compatibleBrands;
|
protected void | getContent(java.nio.ByteBuffer byteBuffer)
byteBuffer.put(IsoFile.fourCCtoBytes(majorBrand));
IsoTypeWriter.writeUInt32(byteBuffer, minorVersion);
for (String compatibleBrand : compatibleBrands) {
byteBuffer.put(IsoFile.fourCCtoBytes(compatibleBrand));
}
|
protected long | getContentSize()
return 8 + compatibleBrands.size() * 4;
|
public java.lang.String | getMajorBrand()Gets the brand identifier.
return majorBrand;
|
public long | getMinorVersion()Gets an informative integer for the minor version of the major brand.
return minorVersion;
|
public void | setCompatibleBrands(java.util.List compatibleBrands)
this.compatibleBrands = compatibleBrands;
|
public void | setMajorBrand(java.lang.String majorBrand)Sets the major brand of the file used to determine an appropriate reader.
this.majorBrand = majorBrand;
|
public void | setMinorVersion(int minorVersion)Sets the "informative integer for the minor version of the major brand".
this.minorVersion = minorVersion;
|
public java.lang.String | toString()
StringBuilder result = new StringBuilder();
result.append("FileTypeBox[");
result.append("majorBrand=").append(getMajorBrand());
result.append(";");
result.append("minorVersion=").append(getMinorVersion());
for (String compatibleBrand : compatibleBrands) {
result.append(";");
result.append("compatibleBrand=").append(compatibleBrand);
}
result.append("]");
return result.toString();
|