|
Copyright 2012-04-26 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.monte.media.avi.AbstractAVIStream.Chunk
org.monte.media.avi.AbstractAVIStream.DataChunk
protected class AbstractAVIStream.DataChunk
Data Chunk.
| Field Summary | |
|---|---|
protected javax.imageio.stream.ImageOutputStream |
data
|
protected boolean |
finished
|
| Fields inherited from class org.monte.media.avi.AbstractAVIStream.Chunk |
|---|
chunkType, offset |
| Constructor Summary | |
|---|---|
AbstractAVIStream.DataChunk(java.lang.String name)
Creates a new DataChunk at the current position of the ImageOutputStream. |
|
AbstractAVIStream.DataChunk(java.lang.String name,
long dataSize)
Creates a new DataChunk at the current position of the ImageOutputStream. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.imageio.stream.ImageOutputStream data
protected boolean finished
| Constructor Detail |
|---|
public AbstractAVIStream.DataChunk(java.lang.String name)
throws java.io.IOException
name - The name of the chunk.
java.io.IOException
public AbstractAVIStream.DataChunk(java.lang.String 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| Method Detail |
|---|
public javax.imageio.stream.ImageOutputStream getOutputStream()
public long getOffset()
public void finish()
throws java.io.IOException
AbstractAVIStream.Chunk
finish in class AbstractAVIStream.Chunkjava.io.IOExceptionpublic long size()
AbstractAVIStream.Chunk
size in class AbstractAVIStream.Chunk
|
Copyright 2012-04-26 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||