public class XMLSubtitleSampleEntry extends AbstractSampleEntry
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE |
dataReferenceIndexlargeBox, type| Constructor and Description |
|---|
XMLSubtitleSampleEntry() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAuxiliaryMimeTypes() |
void |
getBox(java.nio.channels.WritableByteChannel writableByteChannel)
Writes the complete box - size | 4-cc | content - to the given
writableByteChannel. |
java.lang.String |
getNamespace() |
java.lang.String |
getSchemaLocation() |
long |
getSize() |
void |
parse(java.nio.channels.ReadableByteChannel dataSource,
java.nio.ByteBuffer header,
long contentSize,
BoxParser boxParser)
Parses the box excluding the already parsed header (size, 4cc, [long-size], [user-type]).
|
void |
setAuxiliaryMimeTypes(java.lang.String auxiliaryMimeTypes) |
void |
setNamespace(java.lang.String namespace) |
void |
setSchemaLocation(java.lang.String schemaLocation) |
getDataReferenceIndex, setDataReferenceIndexgetHeader, getType, setParentaddBox, getBoxes, getBoxes, getBoxes, getContainerSize, initContainer, setBoxes, toString, writeContainerpublic static final java.lang.String TYPE
public long getSize()
getSize in interface BoxgetSize in class AbstractContainerBoxpublic void parse(java.nio.channels.ReadableByteChannel dataSource,
java.nio.ByteBuffer header,
long contentSize,
BoxParser boxParser)
throws java.io.IOException
ParsableBoxcontentSize, 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 ParsableBoxparse 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.java.io.IOException - in case of an error during a read operationpublic void getBox(java.nio.channels.WritableByteChannel writableByteChannel)
throws java.io.IOException
BoxwritableByteChannel.getBox in interface BoxgetBox in class AbstractSampleEntrywritableByteChannel - the box's sinkjava.io.IOException - in case of problems with the Channelpublic java.lang.String getNamespace()
public void setNamespace(java.lang.String namespace)
public java.lang.String getSchemaLocation()
public void setSchemaLocation(java.lang.String schemaLocation)
public java.lang.String getAuxiliaryMimeTypes()
public void setAuxiliaryMimeTypes(java.lang.String auxiliaryMimeTypes)
Copyright © 2020. All rights reserved.