public class IStreamReader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
nativeObj |
| Modifier | Constructor and Description |
|---|---|
protected |
IStreamReader()
Constructor of streaming callback object with abstract 'read' and 'seek' methods that should be implemented in Java code.
NOTE: Implemented callbacks should be called from the creation thread to avoid JNI performance degradation |
protected |
IStreamReader(long addr) |
| Modifier and Type | Method and Description |
|---|---|
static IStreamReader |
__fromPtr__(long addr) |
protected void |
finalize() |
long |
getNativeObjAddr() |
long |
read(byte[] buffer,
long size)
Read bytes from stream
|
long |
seek(long offset,
int origin)
Sets the stream position
|
protected IStreamReader(long addr)
protected IStreamReader()
public long getNativeObjAddr()
public static IStreamReader __fromPtr__(long addr)
public long read(byte[] buffer,
long size)
buffer - already allocated buffer of at least size bytessize - maximum number of bytes to readpublic long seek(long offset,
int origin)
offset - Seek offsetorigin - SEEK_SET / SEEK_END / SEEK_CUR
SEE: fseekCopyright © 2026. All rights reserved.