public class FreeBox extends Object implements ParsableBox
| Modifier and Type | Method and Description |
|---|---|
void |
addAndReplace(ParsableBox parsableBox) |
boolean |
equals(Object o) |
void |
getBox(WritableByteChannel os)
Writes the complete box - size | 4-cc | content - to the given
writableByteChannel. |
ByteBuffer |
getData() |
long |
getSize() |
String |
getType()
The box's 4-cc type.
|
int |
hashCode() |
void |
parse(ReadableByteChannel dataSource,
ByteBuffer header,
long contentSize,
BoxParser boxParser)
Parses the box excluding the already parsed header (size, 4cc, [long-size], [user-type]).
|
void |
setData(ByteBuffer data) |
public static final String TYPE
public ByteBuffer getData()
public void setData(ByteBuffer data)
public void getBox(WritableByteChannel os) throws IOException
BoxwritableByteChannel.getBox in interface Boxos - 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 operationpublic void addAndReplace(ParsableBox parsableBox)
Copyright © 2015. All rights reserved.