|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface providing access to a physical Ogg stream. Typically this is a file.
| Method Summary | |
void |
close()
Closes this stream. |
java.util.Collection |
getLogicalStreams()
Returns a collection of objects implementing LogicalOggStream
for accessing the separate logical streams within this physical Ogg stream. |
OggPage |
getOggPage(int index)
Return the Ogg page with the absolute index index,
independent from the logical structure of this stream or if the
index parameter is -1, the next Ogg page is returned.
|
boolean |
isOpen()
Checks if this stream is open for reading. |
boolean |
isSeekable()
|
void |
setTime(long granulePosition)
Sets this stream's (and its logical stream's) position to the granule position. |
| Method Detail |
public java.util.Collection getLogicalStreams()
LogicalOggStream
for accessing the separate logical streams within this physical Ogg stream.
LogicalOggStream
which are representing the logical streams contained within this
physical streamLogicalOggStream
public OggPage getOggPage(int index)
throws OggFormatException,
java.io.IOException
index,
independent from the logical structure of this stream or if the
index parameter is -1, the next Ogg page is returned.
This method should only be used by implementations of LogicalOggStream
to access the raw pages.
index - the absolute index starting from 0 at the beginning of
the file or stream or -1 to get the next page in a non-seekable
stream
index
OggFormatException - if the ogg stream is corrupted
java.io.IOException - if some other IO error occurspublic boolean isOpen()
true if this stream is open for reading,
false otherwise
public void close()
throws java.io.IOException
java.io.IOException
public void setTime(long granulePosition)
throws OggFormatException,
java.io.IOException
granulePosition -
OggFormatException - if the ogg stream is corrupted
java.io.IOException - if some other IO error occurspublic boolean isSeekable()
true if the stream is seekable, false
otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||