public class CAURLInputStream extends CANativePeerInputStream
DEFAULT_BUFFER_SIZE, nativeBuffer, pointer
Constructor and Description |
---|
CAURLInputStream(URL url)
Opens a stream from the given URL with the default buffer size given in
CANativePeerInputStream.DEFAULT_BUFFER_SIZE . |
CAURLInputStream(URL url,
int bufferSize)
Opens a stream from a URL with the given buffer size.
|
Modifier and Type | Method and Description |
---|---|
protected void |
close(long audioFileID) |
protected void |
fillNativeBuffer() |
boolean |
isSeekable() |
void |
seek(long time,
TimeUnit timeUnit) |
String |
toString() |
close, finalize, isOpen, read, read
available, mark, markSupported, read, reset, skip
public CAURLInputStream(URL url) throws IOException, UnsupportedAudioFileException
CANativePeerInputStream.DEFAULT_BUFFER_SIZE
.url
- resource to openIOException
UnsupportedAudioFileException
public CAURLInputStream(URL url, int bufferSize) throws IOException, UnsupportedAudioFileException
url
- resource to openbufferSize
- buffer size to use when readingIOException
UnsupportedAudioFileException
public boolean isSeekable()
isSeekable
in class CANativePeerInputStream
CAAudioInputStream.isSeekable()
public void seek(long time, TimeUnit timeUnit) throws UnsupportedOperationException, IOException
seek
in class CANativePeerInputStream
time
- time to seektimeUnit
- unit for the time to seekUnsupportedOperationException
- if not supportedIOException
- if something goes wrongCAAudioInputStream.seek(long, java.util.concurrent.TimeUnit)
protected void fillNativeBuffer() throws IOException
fillNativeBuffer
in class CANativePeerInputStream
IOException
protected void close(long audioFileID) throws IOException
close
in class CANativePeerInputStream
IOException
Copyright © 2011–2023 tagtraum industries incorporated. All rights reserved.