public abstract class AppleDataBox extends AbstractBox
content, type| Modifier | Constructor and Description |
|---|---|
protected |
AppleDataBox(java.lang.String type,
int dataType) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_parseDetails(java.nio.ByteBuffer content)
Parse the box's fields and child boxes if any.
|
protected void |
getContent(java.nio.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() |
java.lang.String |
getLanguageString() |
protected abstract void |
parseData(java.nio.ByteBuffer data) |
protected java.nio.ByteBuffer |
parseDataLength4ccTypeCountryLanguageAndReturnRest(java.nio.ByteBuffer content) |
void |
setDataCountry(int dataCountry) |
void |
setDataLanguage(int dataLanguage) |
protected abstract byte[] |
writeData() |
protected void |
writeDataLength4ccTypeCountryLanguage(java.nio.ByteBuffer content) |
getBox, getSize, getType, getUserType, isParsed, parse, parseDetailspublic java.lang.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 java.nio.ByteBuffer parseDataLength4ccTypeCountryLanguageAndReturnRest(java.nio.ByteBuffer content)
protected void _parseDetails(java.nio.ByteBuffer content)
AbstractBox_parseDetails in class AbstractBoxcontent - the box's raw content beginning after the 4-cc field.protected void getContent(java.nio.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(java.nio.ByteBuffer data)
protected abstract int getDataLength()
@DoNotParseDetail protected void writeDataLength4ccTypeCountryLanguage(java.nio.ByteBuffer content)
Copyright © 2020. All rights reserved.