public class NodeBox extends Box
Box.LeafBox
Modifier and Type | Field and Description |
---|---|
protected List<Box> |
boxes |
protected IBoxFactory |
factory |
header, MAX_BOX_SIZE
Modifier and Type | Method and Description |
---|---|
void |
add(Box box) |
void |
addFirst(MovieHeaderBox box) |
static Box |
cloneBox(Box box,
int approxSize,
IBoxFactory bf) |
static Box |
doCloneBox(Box box,
int approxSize,
IBoxFactory bf) |
protected void |
doWrite(ByteBuffer out) |
protected void |
dump(StringBuilder sb) |
protected void |
dumpBoxes(StringBuilder sb) |
int |
estimateSize() |
static <T extends Box> |
findAll(Box box,
Class<T> class1,
String path) |
static <T extends Box> |
findAllPath(Box box,
Class<T> class1,
String[] path) |
static void |
findBox(Box root,
List<String> path,
Collection<Box> result) |
static <T extends Box> |
findDeep(Box box,
Class<T> class1,
String name) |
static <T extends Box> |
findDeepInner(Box box,
Class<T> class1,
String name,
List<T> storage) |
static <T extends Box> |
findFirst(NodeBox box,
Class<T> clazz,
String path) |
static <T extends Box> |
findFirstPath(NodeBox box,
Class<T> clazz,
String[] path) |
List<Box> |
getBoxes() |
void |
parse(ByteBuffer input) |
static Box |
parseChildBox(ByteBuffer input,
IBoxFactory factory) |
void |
removeChildren(String[] fourcc) |
void |
replace(String fourcc,
Box box) |
void |
replaceBox(Box box) |
void |
setFactory(IBoxFactory factory) |
asBox, createLeafBox, getFourcc, getHeader, parseBox, path, terminatorAtom, toString, write
protected IBoxFactory factory
public NodeBox(Header atom)
public void setFactory(IBoxFactory factory)
public void parse(ByteBuffer input)
public static Box parseChildBox(ByteBuffer input, IBoxFactory factory)
public void add(Box box)
protected void doWrite(ByteBuffer out)
public int estimateSize()
estimateSize
in class Box
public void addFirst(MovieHeaderBox box)
public void replaceBox(Box box)
protected void dump(StringBuilder sb)
protected void dumpBoxes(StringBuilder sb)
public void removeChildren(String[] fourcc)
public static Box doCloneBox(Box box, int approxSize, IBoxFactory bf)
public static Box cloneBox(Box box, int approxSize, IBoxFactory bf)
public static <T extends Box> void findDeepInner(Box box, Class<T> class1, String name, List<T> storage)
public static <T extends Box> T findFirstPath(NodeBox box, Class<T> clazz, String[] path)
public static void findBox(Box root, List<String> path, Collection<Box> result)
Copyright © 2019. All rights reserved.