Class ByteArrayBuffer


  • public final class ByteArrayBuffer
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      byte[] buffer  
      int length  
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteArrayBuffer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void ensureCapacity​(int length)
      Make sure to be able to hold at least length elements.
      • Methods inherited from class java.lang.Object

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

      • buffer

        public byte[] buffer
      • length

        public int length
    • Constructor Detail

      • ByteArrayBuffer

        public ByteArrayBuffer()
    • Method Detail

      • ensureCapacity

        public void ensureCapacity​(int length)
        Make sure to be able to hold at least length elements. Throws existing data away.