Class AbstractAVIStream.Chunk
java.lang.Object
org.monte.media.avi.AbstractAVIStream.Chunk
- Direct Known Subclasses:
AbstractAVIStream.CompositeChunk,AbstractAVIStream.DataChunk,AbstractAVIStream.FixedSizeDataChunk
- Enclosing class:
AbstractAVIStream
Chunk base class.
- Author:
- Werner Randelshofer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChunk(int chunkType) Creates a new Chunk at the current position of the ImageOutputStream. -
Method Summary
-
Field Details
-
chunkType
protected int chunkTypeThe chunkType of the chunk. A String with the length of 4 characters. -
offset
protected long offsetThe offset of the chunk relative to the startTime of the ImageOutputStream.
-
-
Constructor Details
-
Chunk
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
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.
-