Class AbstractAVIStream.FixedSizeDataChunk
java.lang.Object
org.monte.media.avi.AbstractAVIStream.Chunk
org.monte.media.avi.AbstractAVIStream.FixedSizeDataChunk
-
Field Summary
FieldsFields inherited from class org.monte.media.avi.AbstractAVIStream.Chunk
chunkType, offset -
Constructor Summary
ConstructorsConstructorDescriptionFixedSizeDataChunk(int chunkType, long fixedSize) Creates a new DataChunk at the current position of the ImageOutputStream. -
Method Summary
-
Field Details
-
finished
protected boolean finished -
fixedSize
protected long fixedSize
-
-
Constructor Details
-
FixedSizeDataChunk
Creates a new DataChunk at the current position of the ImageOutputStream.- Parameters:
chunkType- The chunkType of the chunk.fixedSize- the fixed size of the chunk- Throws:
IOException
-
-
Method Details
-
getOutputStream
-
getOffset
public long getOffset()Returns the offset of this chunk to the beginning of the random access file -
seekToStartOfData
- Throws:
IOException
-
seekToEndOfChunk
- Throws:
IOException
-
finish
Description copied from class:AbstractAVIStream.ChunkWrites the chunk to the ImageOutputStream and disposes it.- 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.
-