public abstract class AppleDataBox extends AbstractBox
type| Modifier | Constructor and Description |
|---|---|
protected |
AppleDataBox(String type,
int dataType) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_parseDetails(ByteBuffer content)
Parse the box's fields and child boxes if any.
|
protected void |
getContent(ByteBuffer byteBuffer)
Write the box's content into the given
ByteBuffer. |
protected long |
getContentSize()
Get the box's content size without its header.
|
int |
getDataCountry() |
int |
getDataLanguage() |
protected abstract int |
getDataLength() |
int |
getDataType() |
String |
getLanguageString() |
protected abstract void |
parseData(ByteBuffer data) |
protected ByteBuffer |
parseDataLength4ccTypeCountryLanguageAndReturnRest(ByteBuffer content) |
void |
setDataCountry(int dataCountry) |
void |
setDataLanguage(int dataLanguage) |
protected abstract byte[] |
writeData() |
protected void |
writeDataLength4ccTypeCountryLanguage(ByteBuffer content) |
getBox, getOffset, getParent, getPath, getSize, getType, getUserType, isParsed, parse, parseDetails, setParentprotected AppleDataBox(String type, int dataType)
public String getLanguageString()
protected long getContentSize()
AbstractBoxgetContent(ByteBuffer) writes.getContentSize in class AbstractBoxAbstractBox.getContent(java.nio.ByteBuffer)public int getDataType()
public int getDataCountry()
public void setDataCountry(int dataCountry)
public int getDataLanguage()
public void setDataLanguage(int dataLanguage)
@DoNotParseDetail protected ByteBuffer parseDataLength4ccTypeCountryLanguageAndReturnRest(ByteBuffer content)
protected void _parseDetails(ByteBuffer content)
AbstractBox_parseDetails in class AbstractBoxcontent - the box's raw content beginning after the 4-cc field.protected void getContent(ByteBuffer byteBuffer)
AbstractBoxByteBuffer. This must include flags
and version in case of a full box. byteBuffer has been initialized with
getSize() bytes.getContent in class AbstractBoxbyteBuffer - the sink for the box's contentprotected abstract byte[] writeData()
protected abstract void parseData(ByteBuffer data)
protected abstract int getDataLength()
@DoNotParseDetail protected void writeDataLength4ccTypeCountryLanguage(ByteBuffer content)
Copyright © 2017. All rights reserved.