public class XMLSubtitleSampleEntry extends AbstractSampleEntry
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE |
dataReferenceIndexlargeBox, typeboxParser, dataSource| Constructor and Description |
|---|
XMLSubtitleSampleEntry() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuxiliaryMimeTypes() |
void |
getBox(WritableByteChannel writableByteChannel)
Writes the complete box - size | 4-cc | content - to the given
writableByteChannel. |
String |
getNamespace() |
String |
getSchemaLocation() |
long |
getSize() |
void |
parse(DataSource dataSource,
ByteBuffer header,
long contentSize,
BoxParser boxParser)
Parses the box excluding the already parsed header (size, 4cc, [long-size], [user-type]).
|
void |
setAuxiliaryMimeTypes(String auxiliaryMimeTypes) |
void |
setNamespace(String namespace) |
void |
setSchemaLocation(String schemaLocation) |
getDataReferenceIndex, setDataReferenceIndexgetHeader, getOffset, getParent, getType, initContainer, setParentaddBox, close, getBoxes, getBoxes, getBoxes, getByteBuffer, getContainerSize, hasNext, next, remove, setBoxes, toString, writeContainerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOffset, getParent, getType, setParentgetBoxes, getBoxes, getBoxes, getByteBuffer, setBoxes, writeContainerforEachRemainingpublic static final String TYPE
public long getSize()
getSize in interface BoxgetSize in class AbstractContainerBoxpublic void parse(DataSource dataSource, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException
BoxcontentSize, contentSize
number of bytes should be read from the box source (readableByteChannel).
If you need the header buffer at a later stage you have to create a copy.parse in interface Boxparse in class AbstractSampleEntrydataSource - the source for this boxheader - the box' already parsed header (create copy if you need it
later as it will be overwritten)contentSize - remaining bytes of this boxboxParser - use it to parse sub-boxes.IOException - in case of an error during a read operationpublic void getBox(WritableByteChannel writableByteChannel) throws IOException
BoxwritableByteChannel.getBox in interface BoxgetBox in class AbstractSampleEntrywritableByteChannel - the box's sinkIOException - in case of problems with the Channelpublic String getNamespace()
public void setNamespace(String namespace)
public String getSchemaLocation()
public void setSchemaLocation(String schemaLocation)
public String getAuxiliaryMimeTypes()
public void setAuxiliaryMimeTypes(String auxiliaryMimeTypes)
Copyright © 2016. All rights reserved.