org.jcodec.containers.mp4.boxes
Class Box

java.lang.Object
  extended by org.jcodec.containers.mp4.boxes.Box
Direct Known Subclasses:
AvcCBox, CleanApertureExtension, ClipRegionBox, ColorExtension, EndianBox, FielExtension, FileTypeBox, FormatBox, FullBox, GamaExtension, LeafBox, LoadSettingsBox, MP4ABox, NameBox, NodeBox, PixelAspectExt

public abstract class Box
extends Object

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License An MP4 file struncture (box).

Author:
The JCodec project

Field Summary
protected  Header header
           
 
Constructor Summary
Box(Box other)
           
Box(Header header)
           
 
Method Summary
static
<T extends Box>
T
as(Class<T> class1, LeafBox box)
           
protected abstract  void doWrite(ByteBuffer out)
           
protected  void dump(StringBuilder sb)
           
static
<T> T[]
findAll(Box box, Class<T> class1, String... path)
           
static Box[] findAll(Box box, String... path)
           
static
<T> T
findFirst(NodeBox box, Class<T> clazz, String... path)
           
static Box findFirst(NodeBox box, String... path)
           
 String getFourcc()
           
 Header getHeader()
           
abstract  void parse(ByteBuffer buf)
           
 String toString()
           
 void write(ByteBuffer buf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

header

protected Header header
Constructor Detail

Box

public Box(Header header)

Box

public Box(Box other)
Method Detail

getHeader

public Header getHeader()

parse

public abstract void parse(ByteBuffer buf)

findFirst

public static Box findFirst(NodeBox box,
                            String... path)

findFirst

public static <T> T findFirst(NodeBox box,
                              Class<T> clazz,
                              String... path)

findAll

public static Box[] findAll(Box box,
                            String... path)

findAll

public static <T> T[] findAll(Box box,
                              Class<T> class1,
                              String... path)

write

public void write(ByteBuffer buf)

doWrite

protected abstract void doWrite(ByteBuffer out)

getFourcc

public String getFourcc()

toString

public String toString()
Overrides:
toString in class Object

dump

protected void dump(StringBuilder sb)

as

public static <T extends Box> T as(Class<T> class1,
                                   LeafBox box)


Copyright © 2013. All Rights Reserved.