Package org.ujmp.core.util.io
Class AbstractWeakMappedByteBufferConcatenation
- java.lang.Object
-
- org.ujmp.core.util.io.AbstractByteBufferConcatenation
-
- org.ujmp.core.util.io.AbstractWeakMappedByteBufferConcatenation
-
- All Implemented Interfaces:
ByteBufferConcatenation
- Direct Known Subclasses:
WeakMappedByteBufferConcatenation
public abstract class AbstractWeakMappedByteBufferConcatenation extends AbstractByteBufferConcatenation
-
-
Field Summary
Fields Modifier and Type Field Description protected WeakMappedByteBuffer[]
byteBuffers
protected long
totalLength
-
Fields inherited from class org.ujmp.core.util.io.AbstractByteBufferConcatenation
DEFAULTBUFFERSIZE
-
-
Constructor Summary
Constructors Constructor Description AbstractWeakMappedByteBufferConcatenation(WeakMappedByteBuffer... 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
-
-
-
-
Field Detail
-
byteBuffers
protected WeakMappedByteBuffer[] byteBuffers
-
totalLength
protected final long totalLength
-
-
Constructor Detail
-
AbstractWeakMappedByteBufferConcatenation
public AbstractWeakMappedByteBufferConcatenation(WeakMappedByteBuffer... byteBuffers)
-
-
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)
-
-