|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrebuild.comp.java.nio.Buffer
public abstract class Buffer
A container for data of a specific primitive type. Based off J2SE java.nio.Buffer class but no source code used for it.
Method Summary | |
---|---|
int |
capacity()
Returns this buffer's capacity. |
Buffer |
clear()
Clears this buffer. |
Buffer |
flip()
Flips this buffer. |
boolean |
hasRemaining()
Tells whether there are any elements between the current position and the limit. |
int |
limit()
Returns this buffer's limit. |
Buffer |
limit(int newLimit)
Sets this buffer's limit. |
int |
position()
Returns this buffer's position. |
Buffer |
position(int newPosition)
Sets this buffer's position. |
int |
remaining()
Returns the number of elements between the current position and the limit. |
Buffer |
rewind()
Rewinds this buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final int limit()
public final int position()
public final Buffer position(int newPosition)
newPosition
- The new position value; must be non-negative and no larger than the current limit.
public final int remaining()
public final Buffer flip()
public final int capacity()
public final Buffer limit(int newLimit)
newLimit
- the new limit value.
public final Buffer rewind()
public final boolean hasRemaining()
public final Buffer clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |