| java.lang.Object org.apache.derby.impl.store.raw.data.MemByteHolder
MemByteHolder | public class MemByteHolder implements ByteHolder(Code) | | A ByteHolder that stores all its bytes in memory.
|
Constructor Summary | |
public | MemByteHolder(int bufSize) Create a new MemByteHolder. |
curBufDataBytes | int curBufDataBytes(Code) | | |
curBufVEleAt | int curBufVEleAt(Code) | | |
lastBufDataBytes | int lastBufDataBytes(Code) | | |
lastBufVEleAt | int lastBufVEleAt(Code) | | |
MemByteHolder | public MemByteHolder(int bufSize)(Code) | | Create a new MemByteHolder. Store bytes as a list of buffers
of size 'bufSize'.
|
getNextBuffer_r | protected boolean getNextBuffer_r() throws IOException(Code) | | Get the next buffer for reading bytes.
true if the user has read all the bytesin this ByteHolder. exception: IOException - Thrown on error |
getNextBuffer_w | protected void getNextBuffer_w() throws IOException(Code) | | Get the next buffer for writing bytes.
exception: IOException - Thrown on error |
getNextBuffer_w_Sanity | protected void getNextBuffer_w_Sanity()(Code) | | Do sanity checking when getting the next write buffer
|
initBuffer_w | protected void initBuffer_w()(Code) | | Initialize a buffer for writing
|
numBytesSaved | public int numBytesSaved()(Code) | | Return the number of bytes that have been saved to this byte holder.
This result is different from available() as it is unaffected by the
current read position on the ByteHolder.
See Also: ByteHolder.numBytesSaved |
toString | public String toString()(Code) | | Produce a string describing the state of this ByteHolder.
This is mainly for debugging.
|
|
|