com.coremedia.iso.boxes.sampleentry
Class TextSampleEntry

java.lang.Object
  extended by com.coremedia.iso.boxes.AbstractBox
      extended by com.coremedia.iso.boxes.sampleentry.SampleEntry
          extended by 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).


Nested Class Summary
 class TextSampleEntry.BoxRecord
           
 class TextSampleEntry.FontRecord
           
 class TextSampleEntry.FontTableBox
           
 class TextSampleEntry.StyleRecord
           
 
Field Summary
static String TYPE_ENCRYPTED
           
static String TYPE1
           
 
Fields inherited from class com.coremedia.iso.boxes.sampleentry.SampleEntry
boxes
 
Fields inherited from class com.coremedia.iso.boxes.AbstractBox
offset, parsed
 
Constructor Summary
TextSampleEntry(byte[] type)
           
 
Method Summary
 TextSampleEntry.BoxRecord getBoxRecord()
           
protected  void getContent(IsoOutputStream isos)
          Writes the box's content into the given IsoOutputStream.
protected  long getContentSize()
          Gets the box's content size without header size.
 String getDisplayName()
          Returns the human readable name of the box.
 TextSampleEntry.StyleRecord getStyleRecord()
           
 void parse(IsoBufferWrapper in, long size, BoxParser boxParser, Box lastMovieFragmentBox)
          Pareses the given IsoBufferWrapper and returns the remaining bytes.
 void setBoxRecord(TextSampleEntry.BoxRecord boxRecord)
           
 void setStyleRecord(TextSampleEntry.StyleRecord styleRecord)
           
 String toString()
           
 
Methods inherited from class com.coremedia.iso.boxes.sampleentry.SampleEntry
addBox, getBoxes, getBoxes, getBoxes, getDataReferenceIndex, getNumOfBytesToFirstChild, getType, removeBox, setBoxes, setType
 
Methods inherited from class com.coremedia.iso.boxes.AbstractBox
addWriteListener, calculateOffset, getBox, getDeadBytes, getHeader, getHeaderSize, getIsoFile, getOffset, getParent, getSize, getUserType, isParsed, setDeadBytes, setParent, setParsed, setUserType, utf8StringLengthInBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.coremedia.iso.boxes.ContainerBox
getIsoFile, getParent
 
Methods inherited from interface com.coremedia.iso.boxes.Box
calculateOffset, getBox, getOffset, getSize, getUserType, isParsed
 

Field Detail

TYPE1

public static final String TYPE1
See Also:
Constant Field Values

TYPE_ENCRYPTED

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

TextSampleEntry

public TextSampleEntry(byte[] type)
Method Detail

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.

Overrides:
parse in class SampleEntry
Parameters:
in - the (part of the) iso file to parse
size - expected size of the box
boxParser - creates inner boxes
lastMovieFragmentBox - latest of previously found moof boxes
Throws:
IOException - in case of an I/O error.

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

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

getContent

protected void getContent(IsoOutputStream isos)
                   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:
isos - 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)


Copyright © 2011. All Rights Reserved.