Package com.itextpdf.text.pdf.qrcode
Class ByteArray
- java.lang.Object
-
- com.itextpdf.text.pdf.qrcode.ByteArray
-
public final class ByteArray extends java.lang.ObjectThis class implements an array of unsigned bytes.- Since:
- 5.0.2
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]bytesprivate static intINITIAL_SIZEprivate intsize
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendByte(int value)intat(int index)Access an unsigned byte at location index.booleanisEmpty()voidreserve(int capacity)voidset(byte[] source, int offset, int count)voidset(int index, int value)intsize()
-
-
-
Field Detail
-
INITIAL_SIZE
private static final int INITIAL_SIZE
- See Also:
- Constant Field Values
-
bytes
private byte[] bytes
-
size
private int size
-
-
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)
-
-