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