|
Mobios v0.91 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Area
An interface that represents an area of a store that has been allocated. The area object maintains a pointer that can be manipulated and read and written to. This interface is modelled on the java.nio.Buffer interface and should be easily interchanged with it.
Method Summary | |
---|---|
int |
capacity()
Returns the capacity of the area. |
Area |
copyTo(Area destination,
int size)
Copies 'size' bytes from the current position of this Area to the destination Area (at the position set in the destination area). |
byte |
get()
|
Area |
get(byte[] buf,
int off,
int len)
|
char |
getChar()
|
int |
getInt()
|
long |
getLong()
|
short |
getShort()
|
int |
position()
Returns the current position of the pointer within the area. |
Area |
position(int position)
Sets the position within the area and returns this object. |
Area |
put(byte b)
|
Area |
put(byte[] buf,
int off,
int len)
|
Area |
putChar(char c)
|
Area |
putInt(int i)
|
Area |
putLong(long l)
|
Area |
putShort(short s)
|
Method Detail |
---|
int position()
int capacity()
Area position(int position) throws IOException
IOException
Area copyTo(Area destination, int size) throws IOException
IOException
byte get() throws IOException
IOException
Area put(byte b) throws IOException
IOException
Area get(byte[] buf, int off, int len) throws IOException
IOException
Area put(byte[] buf, int off, int len) throws IOException
IOException
short getShort() throws IOException
IOException
Area putShort(short s) throws IOException
IOException
int getInt() throws IOException
IOException
Area putInt(int i) throws IOException
IOException
long getLong() throws IOException
IOException
Area putLong(long l) throws IOException
IOException
char getChar() throws IOException
IOException
Area putChar(char c) throws IOException
IOException
|
Mobios v0.91 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |