public class TextSampleEntry extends AbstractSampleEntry
| Modifier and Type | Class and Description |
|---|---|
static class |
TextSampleEntry.BoxRecord |
static class |
TextSampleEntry.StyleRecord |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE_ENCRYPTED |
static java.lang.String |
TYPE1 |
dataReferenceIndexlargeBox, type| Constructor and Description |
|---|
TextSampleEntry() |
TextSampleEntry(java.lang.String type) |
| Modifier and Type | Method and Description |
|---|---|
int[] |
getBackgroundColorRgba() |
void |
getBox(java.nio.channels.WritableByteChannel writableByteChannel)
Writes the complete box - size | 4-cc | content - to the given
writableByteChannel. |
TextSampleEntry.BoxRecord |
getBoxRecord() |
int |
getHorizontalJustification() |
long |
getSize() |
TextSampleEntry.StyleRecord |
getStyleRecord() |
int |
getVerticalJustification() |
boolean |
isContinuousKaraoke() |
boolean |
isFillTextRegion() |
boolean |
isScrollDirection() |
boolean |
isScrollIn() |
boolean |
isScrollOut() |
boolean |
isWriteTextVertically() |
void |
parse(java.nio.channels.ReadableByteChannel dataSource,
java.nio.ByteBuffer header,
long contentSize,
BoxParser boxParser)
Parses the box excluding the already parsed header (size, 4cc, [long-size], [user-type]).
|
void |
setBackgroundColorRgba(int[] backgroundColorRgba) |
void |
setBoxRecord(TextSampleEntry.BoxRecord boxRecord) |
void |
setContinuousKaraoke(boolean continuousKaraoke) |
void |
setFillTextRegion(boolean fillTextRegion) |
void |
setHorizontalJustification(int horizontalJustification) |
void |
setScrollDirection(boolean scrollOutIn) |
void |
setScrollIn(boolean scrollIn) |
void |
setScrollOut(boolean scrollOutIn) |
void |
setStyleRecord(TextSampleEntry.StyleRecord styleRecord) |
void |
setType(java.lang.String type) |
void |
setVerticalJustification(int verticalJustification) |
void |
setWriteTextVertically(boolean writeTextVertically) |
java.lang.String |
toString() |
getDataReferenceIndex, setDataReferenceIndexgetHeader, getType, setParentaddBox, getBoxes, getBoxes, getBoxes, getContainerSize, initContainer, setBoxes, writeContainerpublic static final java.lang.String TYPE1
public static final java.lang.String TYPE_ENCRYPTED
public TextSampleEntry()
public TextSampleEntry(java.lang.String type)
public void setType(java.lang.String type)
public void parse(java.nio.channels.ReadableByteChannel dataSource,
java.nio.ByteBuffer header,
long contentSize,
BoxParser boxParser)
throws java.io.IOException
ParsableBoxcontentSize, contentSize
number of bytes should be read from the box source (readableByteChannel).
If you need the header buffer at a later stage you have to create a copy.parse in interface ParsableBoxparse in class AbstractSampleEntrydataSource - the source for this boxheader - the box' already parsed header (create copy if you need it
later as it will be overwritten)contentSize - remaining bytes of this boxboxParser - use it to parse sub-boxes.java.io.IOException - in case of an error during a read operationpublic void getBox(java.nio.channels.WritableByteChannel writableByteChannel)
throws java.io.IOException
BoxwritableByteChannel.getBox in interface BoxgetBox in class AbstractSampleEntrywritableByteChannel - the box's sinkjava.io.IOException - in case of problems with the Channelpublic java.lang.String toString()
toString in class BasicContainerpublic TextSampleEntry.BoxRecord getBoxRecord()
public void setBoxRecord(TextSampleEntry.BoxRecord boxRecord)
public TextSampleEntry.StyleRecord getStyleRecord()
public void setStyleRecord(TextSampleEntry.StyleRecord styleRecord)
public boolean isScrollIn()
public void setScrollIn(boolean scrollIn)
public boolean isScrollOut()
public void setScrollOut(boolean scrollOutIn)
public boolean isScrollDirection()
public void setScrollDirection(boolean scrollOutIn)
public boolean isContinuousKaraoke()
public void setContinuousKaraoke(boolean continuousKaraoke)
public boolean isWriteTextVertically()
public void setWriteTextVertically(boolean writeTextVertically)
public boolean isFillTextRegion()
public void setFillTextRegion(boolean fillTextRegion)
public int getHorizontalJustification()
public void setHorizontalJustification(int horizontalJustification)
public int getVerticalJustification()
public void setVerticalJustification(int verticalJustification)
public int[] getBackgroundColorRgba()
public void setBackgroundColorRgba(int[] backgroundColorRgba)
public long getSize()
getSize in interface BoxgetSize in class AbstractContainerBoxCopyright © 2020. All rights reserved.