java.lang.Object
com.lowagie.text.pdf.hyphenation.ByteVector
All Implemented Interfaces:
Serializable

@Deprecated public class ByteVector extends Object implements Serializable
Deprecated.
This class implements a simple byte vector with access to the underlying array.
Author:
Carlos Villegas
See Also:
  • Constructor Details

    • ByteVector

      public ByteVector()
      Deprecated.
    • ByteVector

      public ByteVector(int capacity)
      Deprecated.
    • ByteVector

      public ByteVector(byte[] a)
      Deprecated.
    • ByteVector

      public ByteVector(byte[] a, int capacity)
      Deprecated.
  • Method Details

    • getArray

      public byte[] getArray()
      Deprecated.
    • length

      public int length()
      Deprecated.
      Returns:
      number of items in array
    • capacity

      public int capacity()
      Deprecated.
      Returns:
      current capacity of array
    • put

      public void put(int index, byte val)
      Deprecated.
    • get

      public byte get(int index)
      Deprecated.
    • alloc

      public int alloc(int size)
      Deprecated.
      This is to implement memory allocation in the array. Like malloc().
      Parameters:
      size - The size to add
      Returns:
      The index of the size of the old array
    • trimToSize

      public void trimToSize()
      Deprecated.