Class ByteBuffer
- java.lang.Object
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.ByteBuffer
-
public class ByteBuffer extends java.lang.ObjectThis class represents a variable-length buffer for bytes.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<byte[]>arrayOfArraysprotected static intarrayShiftprotected static intarraySizeprotected byte[]currentBufferprotected intcurrentIndexprotected inttotalBytes
-
Constructor Summary
Constructors Constructor Description ByteBuffer()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendByte(byte b)Add a byte to the buffer at the end.voidclear()Clear the buffer.bytereadByte(int position)Read a byte from the buffer from the specified place.intsize()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
-
-