Class ByteVector
java.lang.Object
com.lowagie.text.pdf.hyphenation.ByteVector
- All Implemented Interfaces:
Serializable
Deprecated.
This class implements a simple byte vector with access to the underlying array.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]Deprecated.The encapsulated arrayprivate intDeprecated.private static final intDeprecated.Capacity increment sizeprivate intDeprecated.Points to next free itemprivate static final longDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.ByteVector(byte[] a) Deprecated.ByteVector(byte[] a, int capacity) Deprecated.ByteVector(int capacity) Deprecated. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDeprecated.- See Also:
-
DEFAULT_BLOCK_SIZE
private static final int DEFAULT_BLOCK_SIZEDeprecated.Capacity increment size- See Also:
-
blockSize
private int blockSizeDeprecated. -
array
private byte[] arrayDeprecated.The encapsulated array -
n
private int nDeprecated.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.
-