Class AbstractQuickTimeStream.Atom

java.lang.Object
org.monte.media.quicktime.AbstractQuickTimeStream.Atom
Direct Known Subclasses:
AbstractQuickTimeStream.DataAtom, AbstractQuickTimeStream.WideDataAtom
Enclosing class:
AbstractQuickTimeStream

protected abstract class AbstractQuickTimeStream.Atom extends Object
Atom base class.
Author:
Werner Randelshofer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected long
    The offset of the atom relative to the start of the ImageOutputStream.
    protected String
    The type of the atom.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Atom(String type, long offset)
    Creates a new Atom at the current position of the ImageOutputStream.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    Writes the atom to the ImageOutputStream and disposes it.
    abstract long
    Returns the size of the atom including the size of the atom header.

    Methods inherited from class java.lang.Object

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

    • type

      protected String type
      The type of the atom. A String with the length of 4 characters.
    • offset

      protected long offset
      The offset of the atom relative to the start of the ImageOutputStream.
  • Constructor Details

    • Atom

      public Atom(String type, long offset)
      Creates a new Atom at the current position of the ImageOutputStream.
      Parameters:
      type - The type of the atom. A string with a length of 4 characters.
  • Method Details

    • finish

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

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