public class SkipBox extends Object implements ParsableBox
| Constructor and Description |
|---|
SkipBox(String type,
byte[] usertype,
String parentType) |
| Modifier and Type | Method and Description |
|---|---|
void |
getBox(WritableByteChannel writableByteChannel)
Writes the complete box - size | 4-cc | content - to the given
writableByteChannel. |
long |
getContentSize() |
long |
getSize() |
long |
getSourcePosition()
Get the seekable position of the content for this box within the source data.
|
String |
getType()
The box's 4-cc type.
|
void |
parse(ReadableByteChannel dataSource,
ByteBuffer header,
long contentSize,
BoxParser boxParser)
Parses the box excluding the already parsed header (size, 4cc, [long-size], [user-type]).
|
public long getContentSize()
public long getSourcePosition()
public void getBox(WritableByteChannel writableByteChannel) throws IOException
BoxwritableByteChannel.getBox in interface BoxwritableByteChannel - the box's sinkIOException - in case of problems with the Channelpublic void parse(ReadableByteChannel dataSource, ByteBuffer header, long contentSize, BoxParser boxParser) throws 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 ParsableBoxdataSource - 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 operationCopyright © 2019. All rights reserved.