Class ByteVector

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.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private byte[]
    Deprecated.
    The encapsulated array
    private int
    Deprecated.
     
    private static final int
    Deprecated.
    Capacity increment size
    private int
    Deprecated.
    Points to next free item
    private static final long
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
    ByteVector(byte[] a)
    Deprecated.
     
    ByteVector(byte[] a, int capacity)
    Deprecated.
     
    ByteVector(int capacity)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    alloc(int size)
    Deprecated.
    This is to implement memory allocation in the array.
    int
    Deprecated.
     
    byte
    get(int index)
    Deprecated.
     
    byte[]
    Deprecated.
     
    int
    Deprecated.
     
    void
    put(int index, byte val)
    Deprecated.
     
    void
    Deprecated.
     

    Methods inherited from class java.lang.Object

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

    • serialVersionUID

      private static final long serialVersionUID
      Deprecated.
      See Also:
    • DEFAULT_BLOCK_SIZE

      private static final int DEFAULT_BLOCK_SIZE
      Deprecated.
      Capacity increment size
      See Also:
    • blockSize

      private int blockSize
      Deprecated.
    • array

      private byte[] array
      Deprecated.
      The encapsulated array
    • n

      private int n
      Deprecated.
      Points to next free item
  • 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.