Class OutStreamWrapper

java.lang.Object
de.digitalcollections.openjpeg.OutStreamWrapper

public abstract class OutStreamWrapper
extends java.lang.Object
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected OutStreamWrapper​(libopenjp2 lib)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    jnr.ffi.Pointer getNativeStream()  
    protected abstract boolean seek​(long numBytes, jnr.ffi.Pointer userData)  
    protected abstract long skip​(long numBytes, jnr.ffi.Pointer userData)  
    protected abstract long write​(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

      protected OutStreamWrapper​(libopenjp2 lib)
  • 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