Java java.nio Buffer fields, constructors, methods, implement or subclass

Example usage for Java java.nio Buffer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.nio Buffer.

The text is from its open source code.

Field

intcapacity
The capacity of this buffer, which never change.
intlimit
limit - 1 is the last element that can be read or written.
intmark
Mark is where position will be set when reset() is called.
intposition
The current position of this buffer.

Method

ClassgetClass()
Returns the runtime class of this Object .
booleanhasRemaining()
Indicates if there are elements remaining in this buffer, that is if position < limit .
intremaining()
Returns the number of remaining elements in this buffer, that is limit - position .
Bufferreset()
Resets the position of this buffer to the mark.
Bufferrewind()
Rewinds this buffer.
StringtoString()
Returns a string representation of the object.