public class FFStreamInputStream extends FFNativePeerInputStream
nativeBuffer, pointer
Constructor and Description |
---|
FFStreamInputStream(InputStream stream) |
FFStreamInputStream(InputStream stream,
int streamIndex) |
Modifier and Type | Method and Description |
---|---|
protected void |
close(long pointer)
Closes the native peer and releases all resources held by it.
|
protected void |
fillNativeBuffer()
Calls
fillNativeBuffer(long) . |
boolean |
isSeekable()
Always returns
false . |
void |
seek(long time,
TimeUnit timeUnit)
Always throws
UnsupportedOperationException , because stream based
FFNativePeerInputStream s are not seekable |
close, finalize, isOpen, read, read
available, mark, markSupported, read, reset, skip
public FFStreamInputStream(InputStream stream) throws IOException, UnsupportedAudioFileException
public FFStreamInputStream(InputStream stream, int streamIndex) throws IOException, UnsupportedAudioFileException
public boolean isSeekable()
false
.
Stream based FFNativePeerInputStream
s are not seekable.isSeekable
in class FFNativePeerInputStream
FFAudioInputStream.isSeekable()
public void seek(long time, TimeUnit timeUnit) throws UnsupportedOperationException, IOException
UnsupportedOperationException
, because stream based
FFNativePeerInputStream
s are not seekableseek
in class FFNativePeerInputStream
time
- timetimeUnit
- time unitUnsupportedOperationException
- always throws UnsupportedOperationExceptionIOException
- if an IO error occursFFAudioInputStream.seek(long, java.util.concurrent.TimeUnit)
protected void fillNativeBuffer() throws IOException
fillNativeBuffer(long)
.fillNativeBuffer
in class FFNativePeerInputStream
IOException
- if an IO error occursprotected void close(long pointer) throws IOException
FFNativePeerInputStream
close
in class FFNativePeerInputStream
pointer
- pointerIOException
- if an IO error occursCopyright © 2013–2023 tagtraum industries incorporated. All rights reserved.