Class AbstractAVIStream.Chunk

java.lang.Object
org.monte.media.avi.AbstractAVIStream.Chunk
Direct Known Subclasses:
AbstractAVIStream.CompositeChunk, AbstractAVIStream.DataChunk, AbstractAVIStream.FixedSizeDataChunk
Enclosing class:
AbstractAVIStream

protected abstract class AbstractAVIStream.Chunk extends Object
Chunk base class.
Author:
Werner Randelshofer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
    The chunkType of the chunk.
    protected long
    The offset of the chunk relative to the startTime of the ImageOutputStream.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Chunk(int chunkType)
    Creates a new Chunk at the current position of the ImageOutputStream.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    Writes the chunk to the ImageOutputStream and disposes it.
    abstract 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

    • chunkType

      protected int chunkType
      The chunkType of the chunk. A String with the length of 4 characters.
    • offset

      protected long offset
      The offset of the chunk relative to the startTime of the ImageOutputStream.
  • Constructor Details

    • Chunk

      public Chunk(int chunkType) throws IOException
      Creates a new Chunk at the current position of the ImageOutputStream.
      Parameters:
      chunkType - The chunkType of the chunk. A string with a length of 4 characters.
      Throws:
      IOException
  • Method Details

    • finish

      public abstract void finish() throws IOException
      Writes the chunk to the ImageOutputStream and disposes it.
      Throws:
      IOException
    • size

      public abstract long size()
      Returns the size of the chunk including the size of the chunk header.
      Returns:
      The size of the chunk.