public abstract class Buffer
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Buffer()
Create an instance of a Buffer.
|
protected |
Buffer(int offset,
boolean forRead)
Create an instance of a Buffer.
|
Modifier and Type | Method and Description |
---|---|
abstract java.io.InputStream |
getInputStream()
Gets an InputStream to read buffer information.
|
int |
getOffset()
Get the buffer offset value.
|
abstract java.io.OutputStream |
getOutputStream()
Gets an OutputStream to write buffer information.
|
abstract long |
getSize()
Gets the buffer size.
|
boolean |
isReadBuffer()
Returns true if the buffer is to be used to read data from the database.
|
void |
setOffset(int offset)
Set the buffer offset value.
|
void |
setReadFlag(boolean forRead)
Sets the read flag to indicate whether or not data should be read
into the buffer from the database, or written from the buffer to the DB.
|
java.lang.String |
toString()
Gets a string representation of this byte buffer.
|
protected Buffer(int offset, boolean forRead)
protected Buffer()
public int getOffset()
public void setOffset(int offset)
offset
- The new offset value.public boolean isReadBuffer()
public void setReadFlag(boolean forRead)
forRead
- The new read flagpublic abstract long getSize()
public abstract java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
public abstract java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object