Package org.aksw.commons.io.buffer.array
Class ArrayOpsByteBuffer
java.lang.Object
org.aksw.commons.io.buffer.array.ArrayOpsByteBuffer
- All Implemented Interfaces:
ArrayOps<ByteBuffer>
-
Field Summary
Fields inherited from interface org.aksw.commons.io.buffer.array.ArrayOps
BYTE, BYTE_BUFFER, OBJECT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy(ByteBuffer src, int srcPos, ByteBuffer dest, int destPos, int length) Absolute copy operation (does not change the positions of the involved buffers)create(int size) voidfill(ByteBuffer buffer, int offset, int length, Object value) Absolute fill operation (does not change the position of the buffer)get(ByteBuffer buffer, int index) Class<?>Return the array class (if known) - such as byte[].classintlength(ByteBuffer buffer) voidset(ByteBuffer buffer, int index, Object value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.commons.io.buffer.array.ArrayOps
copyRaw, fillRaw, getByte, getByteRaw, getRaw, lengthRaw, setByte, setByteRaw, setRaw
-
Constructor Details
-
ArrayOpsByteBuffer
public ArrayOpsByteBuffer()
-
-
Method Details
-
getArrayClass
Description copied from interface:ArrayOpsReturn the array class (if known) - such as byte[].class- Specified by:
getArrayClassin interfaceArrayOps<ByteBuffer>
-
create
- Specified by:
createin interfaceArrayOps<ByteBuffer>
-
get
- Specified by:
getin interfaceArrayOps<ByteBuffer>
-
set
- Specified by:
setin interfaceArrayOps<ByteBuffer>
-
length
- Specified by:
lengthin interfaceArrayOps<ByteBuffer>
-
fill
Absolute fill operation (does not change the position of the buffer)- Specified by:
fillin interfaceArrayOps<ByteBuffer>
-
copy
Absolute copy operation (does not change the positions of the involved buffers)- Specified by:
copyin interfaceArrayOps<ByteBuffer>
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceArrayOps<ByteBuffer>
-