protected class AbstractAVIStream.FixedSizeDataChunk extends AbstractAVIStream.Chunk
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
finished |
protected long |
fixedSize |
chunkType, offset| Constructor and Description |
|---|
AbstractAVIStream.FixedSizeDataChunk(int chunkType,
long fixedSize)
Creates a new DataChunk at the current position of the
ImageOutputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Writes the chunk to the ImageOutputStream and disposes it.
|
long |
getOffset()
Returns the offset of this chunk to the beginning of the random
access file
|
ImageOutputStream |
getOutputStream() |
void |
seekToEndOfChunk() |
void |
seekToStartOfData() |
long |
size()
Returns the size of the chunk including the size of the chunk header.
|
public AbstractAVIStream.FixedSizeDataChunk(int chunkType,
long fixedSize)
throws IOException
chunkType - The chunkType of the chunk.IOExceptionpublic ImageOutputStream getOutputStream()
public long getOffset()
public void seekToStartOfData()
throws IOException
IOExceptionpublic void seekToEndOfChunk()
throws IOException
IOExceptionpublic void finish()
throws IOException
AbstractAVIStream.Chunkfinish in class AbstractAVIStream.ChunkIOExceptionpublic long size()
AbstractAVIStream.Chunksize in class AbstractAVIStream.ChunkCopyright © 2014. All Rights Reserved.