com.itextpdf.text.pdf.qrcode
Class ByteArray

java.lang.Object
  extended by com.itextpdf.text.pdf.qrcode.ByteArray

public final class ByteArray
extends Object

This class implements an array of unsigned bytes.

Since:
5.0.2
Author:
dswitkin@google.com (Daniel Switkin)

Field Summary
private  byte[] bytes
           
private static int INITIAL_SIZE
           
private  int size
           
 
Constructor Summary
ByteArray()
           
ByteArray(byte[] byteArray)
           
ByteArray(int size)
           
 
Method Summary
 void appendByte(int value)
           
 int at(int index)
          Access an unsigned byte at location index.
 boolean isEmpty()
           
 void reserve(int capacity)
           
 void set(byte[] source, int offset, int count)
           
 void set(int index, int value)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INITIAL_SIZE

private static final int INITIAL_SIZE
See Also:
Constant Field Values

bytes

private byte[] bytes

size

private int size
Constructor Detail

ByteArray

public ByteArray()

ByteArray

public ByteArray(int size)

ByteArray

public ByteArray(byte[] byteArray)
Method Detail

at

public int at(int index)
Access an unsigned byte at location index.

Parameters:
index - The index in the array to access.
Returns:
The unsigned value of the byte as an int.

set

public void set(int index,
                int value)

size

public int size()

isEmpty

public boolean isEmpty()

appendByte

public void appendByte(int value)

reserve

public void reserve(int capacity)

set

public void set(byte[] source,
                int offset,
                int count)

Hosted by openminds