public interface Area
| Modifier and Type | Method and Description |
|---|---|
int |
capacity()
Returns the capacity of the area.
|
void |
copyTo(AreaWriter destination_writer,
int size)
Copies 'size' bytes from the current position of this Area to the
destination AreaWriter.
|
byte |
get() |
void |
get(byte[] buf,
int off,
int len) |
char |
getChar() |
long |
getID()
Returns the unique identifier that represents this area.
|
int |
getInt() |
long |
getLong() |
short |
getShort() |
int |
position()
Returns the current position of the pointer within the area.
|
void |
position(int position)
Sets the position within the area.
|
long getID()
int position()
int capacity()
void position(int position)
throws IOException
IOExceptionvoid copyTo(AreaWriter destination_writer, int size) throws IOException
IOExceptionbyte get() throws IOException
IOExceptionvoid get(byte[] buf,
int off,
int len)
throws IOException
IOExceptionshort getShort()
throws IOException
IOExceptionint getInt()
throws IOException
IOExceptionlong getLong()
throws IOException
IOExceptionchar getChar()
throws IOException
IOExceptionCopyright © 2015. All rights reserved.