com.coremedia.iso.boxes
Class FreeSpaceBox
java.lang.Object
com.coremedia.iso.boxes.AbstractBox
com.coremedia.iso.boxes.FreeSpaceBox
- All Implemented Interfaces:
- Box
public class FreeSpaceBox
- extends AbstractBox
The contents of a free-space box are irrelevant and may be ignored, or the object deleted, without affecting the
presentation. Care should be excercized when deleting the object, as this may invalidate the offsets used in the
sample table.
- See Also:
SampleTableBox
Methods inherited from class com.coremedia.iso.boxes.AbstractBox |
addWriteListener, calculateOffset, getBox, getDeadBytes, getHeader, getHeaderSize, getIsoFile, getOffset, getParent, getSize, getType, getUserType, isParsed, setDeadBytes, setParent, setParsed, setUserType, utf8StringLengthInBytes |
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
FreeSpaceBox
public FreeSpaceBox()
getContentSize
protected long getContentSize()
- Description copied from class:
AbstractBox
- Gets the box's content size without header size.
- Specified by:
getContentSize
in class AbstractBox
- Returns:
- Gets the box's content size in bytes
parse
public void parse(IsoBufferWrapper in,
long size,
BoxParser boxParser,
Box lastMovieFragmentBox)
throws IOException
- Description copied from class:
AbstractBox
- Pareses the given IsoBufferWrapper and returns the remaining bytes.
- Specified by:
parse
in class AbstractBox
- Parameters:
in
- the (part of the) iso file to parsesize
- expected size of the boxboxParser
- creates inner boxeslastMovieFragmentBox
- latest of previously found moof boxes
- Throws:
IOException
- in case of an I/O error.
setData
public void setData(byte[] data)
getData
public byte[] getData()
getContent
protected void getContent(IsoOutputStream os)
throws IOException
- Description copied from class:
AbstractBox
- Writes the box's content into the given
IsoOutputStream
. This MUST NOT include
any header bytes.
- Specified by:
getContent
in class AbstractBox
- Parameters:
os
- the box's content-sink.
- Throws:
IOException
- in case of an exception in the underlying OutputStream
.
getDisplayName
public String getDisplayName()
- Description copied from class:
AbstractBox
- Returns the human readable name of the box.
- Specified by:
getDisplayName
in class AbstractBox
- Returns:
- a display string
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011. All Rights Reserved.