com.coremedia.iso.boxes
Class FreeBox
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
FreeBox
public FreeBox()
FreeBox
public FreeBox(int size)
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.