Class SizeableByteArray

java.lang.Object
com.aquima.interactions.foundation.security.util.SizeableByteArray

public final class SizeableByteArray extends Object
Utility for resizeable byte arrays.
Since:
5.1
Author:
m.hesselink
  • Constructor Details

    • SizeableByteArray

      public SizeableByteArray()
      Create an empty sizeable byte array.
  • Method Details

    • append

      public void append(byte[] bytes)
      append bytes to the end of this array.
      Parameters:
      bytes - The bytes that should be appended.
    • append

      public void append(byte[] bytes, int count)
      append a number of bytes to the end of this array.
      Parameters:
      bytes - The bytes array that should be appended.
      count - The number of bytes that should be copied from the array.
    • toByteArray

      public byte[] toByteArray()
      convert the bytes to a single byte array.
      Returns:
      byte array containing the entire content.
    • getLength

      public int getLength()
      Get the length of this byte array.
      Returns:
      The length of the byte array.