Package org.ujmp.core.util.io
Class AbstractMemoryByteBufferConcatenation
- java.lang.Object
-
- org.ujmp.core.util.io.AbstractByteBufferConcatenation
-
- org.ujmp.core.util.io.AbstractMemoryByteBufferConcatenation
-
- All Implemented Interfaces:
ByteBufferConcatenation
- Direct Known Subclasses:
MemoryByteBufferConcatenation
public abstract class AbstractMemoryByteBufferConcatenation extends AbstractByteBufferConcatenation
-
-
Field Summary
Fields Modifier and Type Field Description protected java.nio.ByteBuffer[]
byteBuffers
protected long
totalLength
-
Fields inherited from class org.ujmp.core.util.io.AbstractByteBufferConcatenation
DEFAULTBUFFERSIZE
-
-
Constructor Summary
Constructors Constructor Description AbstractMemoryByteBufferConcatenation(java.nio.ByteBuffer... byteBuffers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteBytes(long position, int count)
byte
getByte(long position)
void
getBytes(byte[] bytes, long position, int length)
long
getLength()
void
setByte(byte b, long position)
void
setBytes(byte[] bytes, long position, int length)
java.lang.String
toString()
-
Methods inherited from class org.ujmp.core.util.io.AbstractByteBufferConcatenation
appendBytes, deleteByte, getBytes, setBytes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ujmp.core.util.io.ByteBufferConcatenation
expand, insertBytes, shrink
-
-
-
-
Method Detail
-
getLength
public final long getLength()
-
deleteBytes
public final void deleteBytes(long position, int count)
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getByte
public final byte getByte(long position)
-
setByte
public final void setByte(byte b, long position)
-
getBytes
public final void getBytes(byte[] bytes, long position, int length)
-
setBytes
public final void setBytes(byte[] bytes, long position, int length)
-
-