protected class AbstractAVIStream.CompositeChunk extends AbstractAVIStream.Chunk
Modifier and Type | Field and Description |
---|---|
protected java.util.LinkedList<AbstractAVIStream.Chunk> |
children |
protected int |
compositeType
The type of the composite.
|
protected boolean |
finished |
chunkType, offset
Constructor and Description |
---|
CompositeChunk(int compositeType,
int chunkType)
Creates a new CompositeChunk at the current position of the
ImageOutputStream.
|
Modifier and Type | Method and Description |
---|---|
void |
add(AbstractAVIStream.Chunk child) |
void |
finish()
Writes the chunk and all its children to the ImageOutputStream and
disposes of all resources held by the chunk.
|
long |
size()
Returns the size of the chunk including the size of the chunk header.
|
protected int compositeType
protected java.util.LinkedList<AbstractAVIStream.Chunk> children
protected boolean finished
public CompositeChunk(int compositeType, int chunkType) throws java.io.IOException
compositeType
- The type of the composite.chunkType
- The type of the chunk.java.io.IOException
public void add(AbstractAVIStream.Chunk child) throws java.io.IOException
java.io.IOException
public void finish() throws java.io.IOException
finish
in class AbstractAVIStream.Chunk
java.io.IOException
public long size()
AbstractAVIStream.Chunk
size
in class AbstractAVIStream.Chunk