protected class AbstractAVIStream.DataChunk extends AbstractAVIStream.Chunk
Modifier and Type | Field and Description |
---|---|
protected boolean |
finished |
chunkType, offset
Constructor and Description |
---|
DataChunk(int name)
Creates a new DataChunk at the current position of the
ImageOutputStream.
|
DataChunk(int name,
long dataSize)
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() |
long |
size()
Returns the size of the chunk including the size of the chunk header.
|
public DataChunk(int name) throws java.io.IOException
name
- The name of the chunk.java.io.IOException
public DataChunk(int name, long dataSize) throws java.io.IOException
name
- The name of the chunk.dataSize
- The size of the chunk data, or -1 if not known.java.io.IOException
public javax.imageio.stream.ImageOutputStream getOutputStream()
public long getOffset()
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