com.coremedia.iso.boxes.sampleentry
Class TextSampleEntry
java.lang.Object
com.coremedia.iso.boxes.AbstractBox
com.coremedia.iso.boxes.sampleentry.SampleEntry
com.coremedia.iso.boxes.sampleentry.TextSampleEntry
- All Implemented Interfaces:
- Box, ContainerBox
public class TextSampleEntry
- extends SampleEntry
Entry type for timed text samples defined in the timed text specification (ISO/IEC 14496-17).
Fields inherited from class com.coremedia.iso.boxes.sampleentry.SampleEntry |
boxes |
Methods inherited from class com.coremedia.iso.boxes.sampleentry.SampleEntry |
_parseChildBoxes, _parseReservedAndDataReferenceIndex, _writeChildBoxes, _writeReservedAndDataReferenceIndex, addBox, getBoxes, getBoxes, getBoxes, getDataReferenceIndex, getNumOfBytesToFirstChild, parse, removeBox, setBoxes, setDataReferenceIndex, setType |
Methods inherited from class com.coremedia.iso.boxes.AbstractBox |
getBox, getDeadBytes, getHeader, getIsoFile, getParent, getSize, getType, getUserType, isParsed, parseDetails, setDeadBytes, setParent, setUserType |
TYPE1
public static final String TYPE1
- See Also:
- Constant Field Values
TYPE_ENCRYPTED
public static final String TYPE_ENCRYPTED
- See Also:
- Constant Field Values
TextSampleEntry
public TextSampleEntry(String type)
_parseDetails
public void _parseDetails(ByteBuffer content)
- Description copied from class:
AbstractBox
- Implement the actual parsing of the box's fields here. External classes will always call
AbstractBox.parseDetails()
which encapsulates the call to this method with some safeguards.
- Specified by:
_parseDetails
in class AbstractBox
getContentSize
protected long getContentSize()
- Description copied from class:
AbstractBox
- Gets the box's content size. This excludes all header fields:
- 4 byte size
- 4 byte type
- (large length - 8 bytes)
- (user type - 16 bytes)
Flags and version of a full box need to be taken into account.
- Specified by:
getContentSize
in class AbstractBox
- Returns:
- Gets the box's content size in bytes
toString
public String toString()
- Overrides:
toString
in class Object
getContent
protected void getContent(ByteBuffer bb)
throws IOException
- Description copied from class:
AbstractBox
- Writes the box's content into the given
ByteBuffer
. This must include flags
and version in case of a full box. bb
has been initialized with
getSize()
bytes.
- Specified by:
getContent
in class AbstractBox
- Parameters:
bb
- the box's content-sink.
- Throws:
IOException
- in case of an exception in the underlying OutputStream
.
getBoxRecord
public TextSampleEntry.BoxRecord getBoxRecord()
setBoxRecord
public void setBoxRecord(TextSampleEntry.BoxRecord boxRecord)
getStyleRecord
public TextSampleEntry.StyleRecord getStyleRecord()
setStyleRecord
public void setStyleRecord(TextSampleEntry.StyleRecord styleRecord)
isScrollIn
public boolean isScrollIn()
setScrollIn
public void setScrollIn(boolean scrollIn)
isScrollOut
public boolean isScrollOut()
setScrollOut
public void setScrollOut(boolean scrollOutIn)
isScrollDirection
public boolean isScrollDirection()
setScrollDirection
public void setScrollDirection(boolean scrollOutIn)
isContinuousKaraoke
public boolean isContinuousKaraoke()
setContinuousKaraoke
public void setContinuousKaraoke(boolean continuousKaraoke)
isWriteTextVertically
public boolean isWriteTextVertically()
setWriteTextVertically
public void setWriteTextVertically(boolean writeTextVertically)
isFillTextRegion
public boolean isFillTextRegion()
setFillTextRegion
public void setFillTextRegion(boolean fillTextRegion)
getHorizontalJustification
public int getHorizontalJustification()
setHorizontalJustification
public void setHorizontalJustification(int horizontalJustification)
getVerticalJustification
public int getVerticalJustification()
setVerticalJustification
public void setVerticalJustification(int verticalJustification)
getBackgroundColorRgba
public int[] getBackgroundColorRgba()
setBackgroundColorRgba
public void setBackgroundColorRgba(int[] backgroundColorRgba)
Copyright © 2012. All Rights Reserved.