protected class AbstractAVIStream.DataChunk extends AbstractAVIStream.Chunk
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
finished |
chunkType, offset| Constructor and Description |
|---|
AbstractAVIStream.DataChunk(int name)
Creates a new DataChunk at the current position of the
ImageOutputStream.
|
AbstractAVIStream.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
|
ImageOutputStream |
getOutputStream() |
long |
size()
Returns the size of the chunk including the size of the chunk header.
|
public AbstractAVIStream.DataChunk(int name)
throws IOException
name - The name of the chunk.IOExceptionpublic AbstractAVIStream.DataChunk(int name,
long dataSize)
throws IOException
name - The name of the chunk.dataSize - The size of the chunk data, or -1 if not known.IOExceptionpublic ImageOutputStream getOutputStream()
public long getOffset()
public void finish()
throws IOException
AbstractAVIStream.Chunkfinish in class AbstractAVIStream.ChunkIOExceptionpublic long size()
AbstractAVIStream.Chunksize in class AbstractAVIStream.ChunkCopyright © 2014. All Rights Reserved.