Class BufferOverArray<A>
java.lang.Object
org.aksw.commons.io.buffer.plain.BufferOverArray<A>
- All Implemented Interfaces:
ArrayReadable<A>, ArrayWritable<A>, BufferLike<A>, HasArrayOps<A>, Buffer<A>, ReadableChannelFactory<A>, ReadableChannelSource<A>, SeekableReadableChannelSource<A>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBufferOverArray(ArrayOps<A> arrayOps, int size) BufferOverArray(ArrayOps<A> arrayOps, A array) -
Method Summary
Modifier and TypeMethodDescriptionstatic <A> BufferOverArray<A> static <A> BufferOverArray<A> get(long index) getArray()longBuffers with 'unlimited' capacity should return Long.MAX_VALUEvoidintlongsize()The size; -1 if unknownvoidThe method that needs to be implemented; all other methods default-delegate to this one.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ArrayReadable
newReadableChannel, readIntoRawMethods inherited from interface ArrayWritable
write, writeMethods inherited from interface SeekableReadableChannelSource
newReadableChannel, newReadableChannel, newReadableChannel
-
Field Details
-
arrayOps
-
array
-
-
Constructor Details
-
BufferOverArray
-
BufferOverArray
-
-
Method Details
-
create
-
create
-
write
Description copied from interface:ArrayWritableThe method that needs to be implemented; all other methods default-delegate to this one.- Specified by:
writein interfaceArrayWritable<A>
-
getArray
-
getCapacity
public long getCapacity()Description copied from interface:BufferLikeBuffers with 'unlimited' capacity should return Long.MAX_VALUE- Specified by:
getCapacityin interfaceBufferLike<A>
-
size
Description copied from interface:ReadableChannelSourceThe size; -1 if unknown- Specified by:
sizein interfaceArrayReadable<A>- Specified by:
sizein interfaceReadableChannelSource<A>- Throws:
IOException
-
getArrayOps
- Specified by:
getArrayOpsin interfaceHasArrayOps<A>
-
readInto
- Specified by:
readIntoin interfaceArrayReadable<A>
-
put
- Specified by:
putin interfaceArrayWritable<A>
-
get
- Specified by:
getin interfaceArrayReadable<A>
-