public class FreeBox extends java.lang.Object implements ParsableBox
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE |
| Modifier and Type | Method and Description |
|---|---|
void |
addAndReplace(ParsableBox parsableBox) |
boolean |
equals(java.lang.Object o) |
void |
getBox(java.nio.channels.WritableByteChannel os)
Writes the complete box - size | 4-cc | content - to the given
writableByteChannel. |
java.nio.ByteBuffer |
getData() |
long |
getSize() |
java.lang.String |
getType()
The box's 4-cc type.
|
int |
hashCode() |
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 |
setData(java.nio.ByteBuffer data) |
public static final java.lang.String TYPE
public java.nio.ByteBuffer getData()
public void setData(java.nio.ByteBuffer data)
public void getBox(java.nio.channels.WritableByteChannel os)
throws java.io.IOException
BoxwritableByteChannel.public java.lang.String getType()
Boxpublic 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 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.java.io.IOException - in case of an error during a read operationpublic void addAndReplace(ParsableBox parsableBox)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2020. All rights reserved.