Example usage for Java java.nio Buffer fields, constructors, methods, implement or subclass
The text is from its open source code.
int | capacity The capacity of this buffer, which never change. |
int | limitlimit - 1 is the last element that can be read or written. |
int | mark Mark is where position will be set when reset() is called. |
int | position The current position of this buffer. |
Class> | getClass() Returns the runtime class of this Object . |
boolean | hasRemaining() Indicates if there are elements remaining in this buffer, that is if position < limit . |
int | remaining() Returns the number of remaining elements in this buffer, that is limit - position . |
Buffer | reset() Resets the position of this buffer to the mark . |
Buffer | rewind() Rewinds this buffer. |
String | toString() Returns a string representation of the object. |