protected class AbstractAVIStream.FixedSizeDataChunk extends AbstractAVIStream.Chunk
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
finished |
protected long |
fixedSize |
chunkType, offset| Constructor and Description |
|---|
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
|
javax.imageio.stream.ImageOutputStream |
getOutputStream() |
void |
seekToEndOfChunk() |
void |
seekToStartOfData() |
long |
size()
Returns the size of the chunk including the size of the chunk header.
|
public FixedSizeDataChunk(int chunkType,
long fixedSize)
throws java.io.IOException
chunkType - The chunkType of the chunk.java.io.IOExceptionpublic javax.imageio.stream.ImageOutputStream getOutputStream()
public long getOffset()
public void seekToStartOfData()
throws java.io.IOException
java.io.IOExceptionpublic void seekToEndOfChunk()
throws java.io.IOException
java.io.IOExceptionpublic void finish()
throws java.io.IOException
AbstractAVIStream.Chunkfinish in class AbstractAVIStream.Chunkjava.io.IOExceptionpublic long size()
AbstractAVIStream.Chunksize in class AbstractAVIStream.Chunk