org.jcodec.containers.mp4.boxes
Class NodeBox

java.lang.Object
  extended by org.jcodec.containers.mp4.boxes.Box
      extended by org.jcodec.containers.mp4.boxes.NodeBox
Direct Known Subclasses:
DataInfoBox, DataRefBox, MediaBox, MediaInfoBox, MovieBox, SampleDescriptionBox, SampleEntry, TrakBox, WaveExtension

public class NodeBox
extends Box

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License A node box A box containing children, no data

Author:
Jay Codec

Field Summary
protected  List<Box> boxes
           
protected  BoxFactory factory
           
 
Fields inherited from class org.jcodec.containers.mp4.boxes.Box
header
 
Constructor Summary
NodeBox(Header atom)
           
NodeBox(NodeBox other)
           
 
Method Summary
 void add(Box box)
           
 void addFirst(MovieHeaderBox box)
           
protected  void doWrite(ByteBuffer out)
           
 void dump(StringBuilder sb)
           
protected  void dumpBoxes(StringBuilder sb)
           
 List<Box> getBoxes()
           
static Box newBox(Header header, BoxFactory factory)
           
 void parse(ByteBuffer input)
           
static Box parseBox(ByteBuffer input, Header childAtom, BoxFactory factory)
           
static Box parseChildBox(ByteBuffer input, BoxFactory factory)
           
 void removeChildren(String... fourcc)
           
 void replace(String fourcc, Box box)
           
 
Methods inherited from class org.jcodec.containers.mp4.boxes.Box
as, findAll, findAll, findFirst, findFirst, getFourcc, getHeader, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

boxes

protected List<Box> boxes

factory

protected BoxFactory factory
Constructor Detail

NodeBox

public NodeBox(Header atom)

NodeBox

public NodeBox(NodeBox other)
Method Detail

parse

public void parse(ByteBuffer input)
Specified by:
parse in class Box

parseChildBox

public static Box parseChildBox(ByteBuffer input,
                                BoxFactory factory)

newBox

public static Box newBox(Header header,
                         BoxFactory factory)

parseBox

public static Box parseBox(ByteBuffer input,
                           Header childAtom,
                           BoxFactory factory)

getBoxes

public List<Box> getBoxes()

add

public void add(Box box)

doWrite

protected void doWrite(ByteBuffer out)
Specified by:
doWrite in class Box

addFirst

public void addFirst(MovieHeaderBox box)

replace

public void replace(String fourcc,
                    Box box)

dump

public void dump(StringBuilder sb)
Overrides:
dump in class Box

dumpBoxes

protected void dumpBoxes(StringBuilder sb)

removeChildren

public void removeChildren(String... fourcc)


Copyright © 2013. All Rights Reserved.