com.coremedia.iso.boxes
Class FreeBox

java.lang.Object
  extended by com.coremedia.iso.boxes.FreeBox
All Implemented Interfaces:
Box

public class FreeBox
extends Object
implements Box

A free box. Just a placeholder to enable editing without rewriting the whole file.


Field Summary
static String TYPE
           
 
Constructor Summary
FreeBox()
           
FreeBox(int size)
           
 
Method Summary
 void addAndReplace(Box box)
           
 void getBox(WritableByteChannel os)
          Writes the complete box - size | 4-cc | content - to the given writableByteChannel.
 ByteBuffer getData()
           
 ContainerBox getParent()
           
 long getSize()
           
 String getType()
          The box's 4-cc type.
 void parse(ReadableByteChannel readableByteChannel, ByteBuffer header, long contentSize, BoxParser boxParser)
           
 void setData(ByteBuffer data)
           
 void setParent(ContainerBox parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

FreeBox

public FreeBox()

FreeBox

public FreeBox(int size)
Method Detail

getData

public ByteBuffer getData()

setData

public void setData(ByteBuffer data)

getBox

public void getBox(WritableByteChannel os)
            throws IOException
Description copied from interface: Box
Writes the complete box - size | 4-cc | content - to the given writableByteChannel.

Specified by:
getBox in interface Box
Parameters:
os - the box's sink
Throws:
IOException - in case of problems with the Channel

getParent

public ContainerBox getParent()
Specified by:
getParent in interface Box

setParent

public void setParent(ContainerBox parent)
Specified by:
setParent in interface Box

getSize

public long getSize()
Specified by:
getSize in interface Box

getType

public String getType()
Description copied from interface: Box
The box's 4-cc type.

Specified by:
getType in interface Box
Returns:
the 4 character type of the box

parse

public void parse(ReadableByteChannel readableByteChannel,
                  ByteBuffer header,
                  long contentSize,
                  BoxParser boxParser)
           throws IOException
Specified by:
parse in interface Box
Throws:
IOException

addAndReplace

public void addAndReplace(Box box)


Copyright © 2012. All Rights Reserved.