|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gagravarr.ogg.OggFile
public class OggFile
This class takes care of reading and writing files using the Ogg container format.
Constructor Summary | |
---|---|
OggFile(InputStream input)
Opens a file for reading in blocking (non event) mode. |
|
OggFile(InputStream input,
OggStreamListener listener)
Opens a file for reading in non-blocking (event) mode. |
|
OggFile(OutputStream output)
Opens a file for writing. |
Method Summary | |
---|---|
void |
close()
Closes our streams. |
OggPacketReader |
getPacketReader()
Returns a reader that will allow you to read packets from the file, across all Logical Bit Streams, in the order that they occur. |
OggPacketWriter |
getPacketWriter()
Creates a new Logical Bit Stream in the file, and returns a Writer for putting data into it. |
OggPacketWriter |
getPacketWriter(int sid)
Creates a new Logical Bit Stream in the file, and returns a Writer for putting data into it. |
protected int |
getUnusedSerialNumber()
Returns a random, but previously un-used serial number for use by a new stream |
protected void |
writePages(OggPage[] pages)
Writes a (possibly series) of pages to the stream in one go. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OggFile(OutputStream output)
getPacketWriter()
to
begin writing your data.
public OggFile(InputStream input)
getPacketReader()
to
begin reading the file.
public OggFile(InputStream input, OggStreamListener listener) throws IOException
IOException
Method Detail |
---|
public void close() throws IOException
OggPacketWriter
instances
first!
IOException
public OggPacketReader getPacketReader()
public OggPacketWriter getPacketWriter()
public OggPacketWriter getPacketWriter(int sid)
protected void writePages(OggPage[] pages) throws IOException
IOException
protected int getUnusedSerialNumber()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |