Class AbstractAVIStream.CompositeChunk
java.lang.Object
org.monte.media.avi.AbstractAVIStream.Chunk
org.monte.media.avi.AbstractAVIStream.CompositeChunk
- Enclosing class:
AbstractAVIStream
A CompositeChunk contains an ordered list of Chunks.
- Author:
- Werner Randelshofer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LinkedList<AbstractAVIStream.Chunk> protected intThe type of the composite.protected booleanFields inherited from class org.monte.media.avi.AbstractAVIStream.Chunk
chunkType, offset -
Constructor Summary
ConstructorsConstructorDescriptionCompositeChunk(int compositeType, int chunkType) Creates a new CompositeChunk at the current position of the ImageOutputStream. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(AbstractAVIStream.Chunk child) voidfinish()Writes the chunk and all its children to the ImageOutputStream and disposes of all resources held by the chunk.longsize()Returns the size of the chunk including the size of the chunk header.
-
Field Details
-
compositeType
protected int compositeTypeThe type of the composite. A String with the length of 4 characters. -
children
-
finished
protected boolean finished
-
-
Constructor Details
-
CompositeChunk
Creates a new CompositeChunk at the current position of the ImageOutputStream.- Parameters:
compositeType- The type of the composite.chunkType- The type of the chunk.- Throws:
IOException
-
-
Method Details
-
add
- Throws:
IOException
-
finish
Writes the chunk and all its children to the ImageOutputStream and disposes of all resources held by the chunk.- Specified by:
finishin classAbstractAVIStream.Chunk- Throws:
IOException
-
size
public long size()Description copied from class:AbstractAVIStream.ChunkReturns the size of the chunk including the size of the chunk header.- Specified by:
sizein classAbstractAVIStream.Chunk- Returns:
- The size of the chunk.
-