Class AbstractQuickTimeStream.CompositeAtom
java.lang.Object
org.monte.media.quicktime.AbstractQuickTimeStream.Atom
org.monte.media.quicktime.AbstractQuickTimeStream.DataAtom
org.monte.media.quicktime.AbstractQuickTimeStream.CompositeAtom
- Enclosing class:
AbstractQuickTimeStream
A CompositeAtom contains an ordered list of Atoms.
- Author:
- Werner Randelshofer
-
Field Summary
FieldsFields inherited from class org.monte.media.quicktime.AbstractQuickTimeStream.DataAtom
data, finishedFields inherited from class org.monte.media.quicktime.AbstractQuickTimeStream.Atom
offset, type -
Constructor Summary
ConstructorsConstructorDescriptionCompositeAtom(String type) Creates a new CompositeAtom at the current position of the ImageOutputStream. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(AbstractQuickTimeStream.Atom child) voidfinish()Writes the atom and all its children to the ImageOutputStream and disposes of all resources held by the atom.longsize()Returns the size of the atom including the size of the atom header.Methods inherited from class org.monte.media.quicktime.AbstractQuickTimeStream.DataAtom
getOffset, getOutputStream
-
Field Details
-
children
-
-
Constructor Details
-
CompositeAtom
Creates a new CompositeAtom at the current position of the ImageOutputStream.- Parameters:
type- The type of the atom.- Throws:
IOException
-
-
Method Details
-
add
- Throws:
IOException
-
finish
Writes the atom and all its children to the ImageOutputStream and disposes of all resources held by the atom.- Overrides:
finishin classAbstractQuickTimeStream.DataAtom- Throws:
IOException
-
size
public long size()Description copied from class:AbstractQuickTimeStream.AtomReturns the size of the atom including the size of the atom header.- Overrides:
sizein classAbstractQuickTimeStream.DataAtom- Returns:
- The size of the atom.
-