Package de.jarnbjo.ogg
Class CachedUrlStream
java.lang.Object
de.jarnbjo.ogg.CachedUrlStream
- All Implemented Interfaces:
PhysicalOggStream
public class CachedUrlStream extends java.lang.Object implements PhysicalOggStream
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CachedUrlStream.LoaderThread
-
Constructor Summary
Constructors Constructor Description CachedUrlStream(java.net.URL source)
CachedUrlStream(java.net.URL source, java.io.RandomAccessFile drain)
-
Method Summary
Modifier and Type Method Description void
close()
long
getCacheLength()
java.util.Collection
getLogicalStreams()
OggPage
getOggPage(int index)
boolean
isOpen()
boolean
isSeekable()
void
setTime(long granulePosition)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CachedUrlStream
- Throws:
OggFormatException
java.io.IOException
-
CachedUrlStream
public CachedUrlStream(java.net.URL source, java.io.RandomAccessFile drain) throws OggFormatException, java.io.IOException- Throws:
OggFormatException
java.io.IOException
-
-
Method Details
-
getLogicalStreams
public java.util.Collection getLogicalStreams()- Specified by:
getLogicalStreams
in interfacePhysicalOggStream
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in interfacePhysicalOggStream
-
close
public void close() throws java.io.IOException- Specified by:
close
in interfacePhysicalOggStream
- Throws:
java.io.IOException
-
getCacheLength
public long getCacheLength() -
getOggPage
- Specified by:
getOggPage
in interfacePhysicalOggStream
- Throws:
java.io.IOException
-
setTime
public void setTime(long granulePosition) throws java.io.IOException- Specified by:
setTime
in interfacePhysicalOggStream
- Throws:
java.io.IOException
-
isSeekable
public boolean isSeekable()- Specified by:
isSeekable
in interfacePhysicalOggStream
-