public abstract class Box extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Box.LeafBox |
Modifier and Type | Field and Description |
---|---|
Header |
header |
static int |
MAX_BOX_SIZE |
Modifier and Type | Method and Description |
---|---|
static <T extends Box> |
asBox(Class<T> class1,
Box box) |
static Box.LeafBox |
createLeafBox(Header atom,
ByteBuffer data) |
protected abstract void |
doWrite(ByteBuffer out) |
protected void |
dump(StringBuilder sb) |
abstract int |
estimateSize() |
String |
getFourcc() |
Header |
getHeader() |
abstract void |
parse(ByteBuffer buf) |
static Box |
parseBox(ByteBuffer input,
Header childAtom,
IBoxFactory factory) |
static String[] |
path(String path) |
static Box |
terminatorAtom() |
String |
toString() |
void |
write(ByteBuffer buf) |
public Header header
public static final int MAX_BOX_SIZE
public Box(Header header)
public Header getHeader()
public abstract void parse(ByteBuffer buf)
public void write(ByteBuffer buf)
protected abstract void doWrite(ByteBuffer out)
public abstract int estimateSize()
public String getFourcc()
protected void dump(StringBuilder sb)
public static Box terminatorAtom()
public static Box.LeafBox createLeafBox(Header atom, ByteBuffer data)
public static Box parseBox(ByteBuffer input, Header childAtom, IBoxFactory factory)
Copyright © 2019. All rights reserved.