public abstract class Buffer extends 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 InputStream |
getInputStream()
Gets an InputStream to read buffer information.
|
int |
getOffset()
Get the buffer offset value.
|
abstract 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.
|
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 InputStream getInputStream() throws IOException
IOException
public abstract OutputStream getOutputStream() throws IOException
IOException
Copyright © 2003, 2023, Oracle and/or its affiliates.