• Method Summary

    array()

    Returns the array that backs this buffer  (optional operation).

    abstract int

    Returns the offset within this buffer's backing array of the first element of the buffer  (optional operation).

    final int

    capacity()

    Returns this buffer's capacity.

    clear()

    duplicate()

    Creates a new buffer that shares this buffer's content.

    flip()

    abstract boolean

    hasArray()

    Tells whether or not this buffer is backed by an accessible array.

    final boolean

    Tells whether there are any elements between the current position and the limit.

    abstract boolean

    isDirect()

    Tells whether or not this buffer is direct.

    abstract boolean

    Tells whether or not this buffer is read-only.

    final int

    limit()

    Returns this buffer's limit.

    limit(int newLimit)

    Sets this buffer's limit.

    mark()

    Sets this buffer's mark at its position.

    final int

    position()

    Returns this buffer's position.

    position(int newPosition)

    Sets this buffer's position.

    final int

    remaining()

    Returns the number of elements between the current position and the limit.

    reset()

    Resets this buffer's position to the previously-marked position.

    rewind()

    slice()

    Creates a new buffer whose content is a shared subsequence of this buffer's content.

    slice(int index, int length)

    Creates a new buffer whose content is a shared subsequence of this buffer's content.

    Methods declared in class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

  • Method Details

    • capacity

    • position

    • position

    • limit

    • limit

    • mark

    • reset

    • clear

    • flip

    • rewind

    • remaining

    • hasRemaining

    • isReadOnly

    • hasArray

    • array

    • arrayOffset

    • isDirect

    • slice

    • slice

    • duplicate