Class Data

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class Data
    extends java.lang.Object
    implements java.io.Closeable
    Data class provides proxy to pass byte buffers from cpp code to Java code without a copying
    • Constructor Summary

      Constructors 
      Constructor Description
      Data​(java.nio.ByteBuffer buffer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      protected void finalize()  
      java.nio.ByteBuffer getData()  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Data

        public Data​(java.nio.ByteBuffer buffer)
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • getData

        public java.nio.ByteBuffer getData()