Class ByteBuffer
- java.lang.Object
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.ByteBuffer
-
public class ByteBuffer extends java.lang.Object
This class represents a variable-length buffer for bytes.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<byte[]>
arrayOfArrays
protected static int
arrayShift
protected static int
arraySize
protected byte[]
currentBuffer
protected int
currentIndex
protected int
totalBytes
-
Constructor Summary
Constructors Constructor Description ByteBuffer()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendByte(byte b)
Add a byte to the buffer at the end.void
clear()
Clear the buffer.byte
readByte(int position)
Read a byte from the buffer from the specified place.int
size()
Get the current buffer length.
-
-
-
Field Detail
-
arraySize
protected static final int arraySize
- See Also:
- Constant Field Values
-
arrayShift
protected static final int arrayShift
- See Also:
- Constant Field Values
-
arrayOfArrays
protected final java.util.List<byte[]> arrayOfArrays
-
totalBytes
protected int totalBytes
-
currentIndex
protected int currentIndex
-
currentBuffer
protected byte[] currentBuffer
-
-