Package de.digitalcollections.openjpeg
Class OutStreamWrapper
java.lang.Object
de.digitalcollections.openjpeg.OutStreamWrapper
public abstract class OutStreamWrapper
extends java.lang.Object
-
Constructor Summary
Constructors Modifier Constructor Description protectedOutStreamWrapper(libopenjp2 lib) -
Method Summary
Modifier and Type Method Description voidclose()jnr.ffi.PointergetNativeStream()protected abstract booleanseek(long numBytes, jnr.ffi.Pointer userData)protected abstract longskip(long numBytes, jnr.ffi.Pointer userData)protected abstract longwrite(jnr.ffi.Pointer inBuffer, long numBytes, jnr.ffi.Pointer userData)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
OutStreamWrapper
-
-
Method Details
-
getNativeStream
public jnr.ffi.Pointer getNativeStream() -
write
protected abstract long write(jnr.ffi.Pointer inBuffer, long numBytes, jnr.ffi.Pointer userData) -
skip
protected abstract long skip(long numBytes, jnr.ffi.Pointer userData) -
seek
protected abstract boolean seek(long numBytes, jnr.ffi.Pointer userData) -
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-