Class AbstractAVIStream.DataChunk

java.lang.Object
org.monte.media.avi.AbstractAVIStream.Chunk
org.monte.media.avi.AbstractAVIStream.DataChunk
Enclosing class:
AbstractAVIStream

protected class AbstractAVIStream.DataChunk extends AbstractAVIStream.Chunk
Data Chunk.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     

    Fields inherited from class org.monte.media.avi.AbstractAVIStream.Chunk

    chunkType, offset
  • Constructor Summary

    Constructors
    Constructor
    Description
    DataChunk(int name)
    Creates a new DataChunk at the current position of the ImageOutputStream.
    DataChunk(int name, long dataSize)
    Creates a new DataChunk at the current position of the ImageOutputStream.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Writes the chunk to the ImageOutputStream and disposes it.
    long
    Returns the offset of this chunk to the beginning of the random access file
     
    long
    Returns the size of the chunk including the size of the chunk header.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • finished

      protected boolean finished
  • Constructor Details

    • DataChunk

      public DataChunk(int name) throws IOException
      Creates a new DataChunk at the current position of the ImageOutputStream.
      Parameters:
      name - The name of the chunk.
      Throws:
      IOException
    • DataChunk

      public DataChunk(int name, long dataSize) throws IOException
      Creates a new DataChunk at the current position of the ImageOutputStream.
      Parameters:
      name - The name of the chunk.
      dataSize - The size of the chunk data, or -1 if not known.
      Throws:
      IOException
  • Method Details