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.IOException
public javax.imageio.stream.ImageOutputStream getOutputStream()
public long getOffset()
public void seekToStartOfData() throws java.io.IOException
java.io.IOException
public void seekToEndOfChunk() throws java.io.IOException
java.io.IOException
public void finish() throws java.io.IOException
AbstractAVIStream.Chunk
finish
in class AbstractAVIStream.Chunk
java.io.IOException
public long size()
AbstractAVIStream.Chunk
size
in class AbstractAVIStream.Chunk