public abstract class WriteOnlyBox extends Object implements Box
| Constructor and Description |
|---|
WriteOnlyBox(String type) |
| Modifier and Type | Method and Description |
|---|---|
long |
getOffset()
Returns the position of the box in the original file.
|
Container |
getParent() |
String |
getType()
The box's 4-cc type.
|
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 |
setParent(Container parent) |
public WriteOnlyBox(String type)
public long getOffset()
Boxpublic 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 BoxdataSource - 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 © 2016. All rights reserved.