public abstract class CANativePeerInputStream extends InputStream
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BUFFER_SIZE
Default read buffer size.
|
protected ByteBuffer |
nativeBuffer
Native audio buffer.
|
protected long |
pointer
Pointer to the native peer struct.
|
Modifier | Constructor and Description |
---|---|
protected |
CANativePeerInputStream() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected abstract void |
close(long pointer) |
protected abstract void |
fillNativeBuffer() |
protected void |
finalize() |
protected boolean |
isOpen() |
abstract boolean |
isSeekable() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
abstract void |
seek(long time,
TimeUnit timeUnit) |
available, mark, markSupported, read, reset, skip
public static int DEFAULT_BUFFER_SIZE
CA_DEFAULT_BUFFER_SIZE
. Values are given in kilo bytes (kB), not bytes.protected long pointer
protected ByteBuffer nativeBuffer
protected CANativePeerInputStream() throws IOException, UnsupportedAudioFileException
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public abstract boolean isSeekable()
CAAudioInputStream.isSeekable()
public abstract void seek(long time, TimeUnit timeUnit) throws UnsupportedOperationException, IOException
time
- time to seektimeUnit
- unit for the time to seekIOException
- if something goes wrongUnsupportedOperationException
- if not supportedCAAudioInputStream.seek(long, java.util.concurrent.TimeUnit)
protected boolean isOpen()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
protected abstract void fillNativeBuffer() throws IOException
IOException
protected abstract void close(long pointer) throws IOException
IOException
Copyright © 2011–2023 tagtraum industries incorporated. All rights reserved.