Class ByteBufferHelper


  • public class ByteBufferHelper
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.nio.ByteBuffer createResizedByteBuffer​(java.nio.ByteBuffer bb, int maxSize)  
      static byte[] toByteArray​(java.nio.ByteBuffer buffer)  
      • Methods inherited from class java.lang.Object

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

      • ByteBufferHelper

        public ByteBufferHelper()
    • Method Detail

      • createResizedByteBuffer

        public static java.nio.ByteBuffer createResizedByteBuffer​(java.nio.ByteBuffer bb,
                                                                  int maxSize)
                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • toByteArray

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