|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jarnbjo.ogg.UncachedUrlStream
Implementation of the PhysicalOggStream interface for reading
an Ogg stream from a URL. This class performs only the necessary caching
to provide continous playback. Seeking within the stream is not supported.
| Nested Class Summary | |
class |
UncachedUrlStream.LoaderThread
|
| Constructor Summary | |
UncachedUrlStream(java.net.URL source)
Creates an instance of the PhysicalOggStream interface
suitable for reading an Ogg stream from a URL. |
|
| 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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UncachedUrlStream(java.net.URL source)
throws OggFormatException,
java.io.IOException
PhysicalOggStream interface
suitable for reading an Ogg stream from a URL.
| Method Detail |
public java.util.Collection getLogicalStreams()
PhysicalOggStreamLogicalOggStream
for accessing the separate logical streams within this physical Ogg stream.
getLogicalStreams in interface PhysicalOggStreamLogicalOggStream
which are representing the logical streams contained within this
physical streamLogicalOggStreampublic boolean isOpen()
PhysicalOggStream
isOpen in interface PhysicalOggStreamtrue if this stream is open for reading,
false otherwise
public void close()
throws java.io.IOException
PhysicalOggStream
close in interface PhysicalOggStreamjava.io.IOException
public OggPage getOggPage(int index)
throws java.io.IOException
PhysicalOggStreamindex,
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.
getOggPage in interface PhysicalOggStreamindex - 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
java.io.IOException - if some other IO error occurs
public void setTime(long granulePosition)
throws java.io.IOException
PhysicalOggStream
setTime in interface PhysicalOggStreamgranulePosition -
java.io.IOException - if some other IO error occurspublic boolean isSeekable()
isSeekable in interface PhysicalOggStreamfalse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||