Class BufferHandler


  • public class BufferHandler
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      BufferHandler()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.nio.ByteBuffer duplicate​(java.nio.ByteBuffer buffer)  
      static <T extends java.nio.Buffer>
      T
      flip​(T buffer)  
      static <T extends java.nio.Buffer>
      int
      limit​(T buffer)  
      static <T extends java.nio.Buffer>
      int
      position​(T buffer)  
      static java.nio.ByteBuffer shareContent​(java.nio.ByteBuffer byteBuffer)  
      static byte[] toByteArray​(java.nio.ByteBuffer byteBuffer)  
      • Methods inherited from class java.lang.Object

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

      • BufferHandler

        public BufferHandler()
    • Method Detail

      • shareContent

        public static java.nio.ByteBuffer shareContent​(java.nio.ByteBuffer byteBuffer)
      • flip

        public static <T extends java.nio.Buffer> T flip​(T buffer)
      • position

        public static <T extends java.nio.Buffer> int position​(T buffer)
      • duplicate

        public static java.nio.ByteBuffer duplicate​(java.nio.ByteBuffer buffer)
      • limit

        public static <T extends java.nio.Buffer> int limit​(T buffer)
      • toByteArray

        public static byte[] toByteArray​(java.nio.ByteBuffer byteBuffer)