RingJavafor Ring

java.nio

14 classes of the module java.base.

Load them with:

using {
	"java.nio"
}

All packages

Buffer#

abstract · extends Object · java.nio.Buffer

Methods

MethodRing callJava overloads
@limit@limit(newLimit)Buffer limit(int newLimit)
@position@position(newPosition)Buffer position(int newPosition)
@slice@slice([index,length])
@slice([ :index = v, :length = v ])
Buffer slice(int index, int length)
arrayarray()Object array()
arrayOffsetarrayOffset()int arrayOffset()
capacitycapacity()int capacity()
clearclear()Buffer clear()
duplicateduplicate()Buffer duplicate()
flipflip()Buffer flip()
hasArrayhasArray()boolean hasArray()
hasRemaininghasRemaining()boolean hasRemaining()
isDirectisDirect()boolean isDirect()
isReadOnlyisReadOnly()boolean isReadOnly()
limitlimit()int limit()
markmark()Buffer mark()
positionposition()int position()
remainingremaining()int remaining()
resetreset()Buffer reset()
rewindrewind()Buffer rewind()
sliceslice()Buffer slice()

The methods and fields of Object are inherited.

BufferOverflowException#

class · extends RuntimeException · java.nio.BufferOverflowException

Constructors

new BufferOverflowException()

Ring: new BufferOverflowException(args) uses the constructor with the fewest parameters (at least one); new BufferOverflowException makes the object with the constructor without parameters; the others: (new BufferOverflowException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of RuntimeException are inherited.

BufferUnderflowException#

class · extends RuntimeException · java.nio.BufferUnderflowException

Constructors

new BufferUnderflowException()

Ring: new BufferUnderflowException(args) uses the constructor with the fewest parameters (at least one); new BufferUnderflowException makes the object with the constructor without parameters; the others: (new BufferUnderflowException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of RuntimeException are inherited.

ByteBuffer#

abstract · extends Buffer · java.nio.ByteBuffer

Implements: Comparable

Methods

MethodRing callJava overloads
@@get@@get(dst)
@@get([index,dst])
@@get([ :index = v, :dst = v ])
@@get([dst,offset,length])
@@get([ :dst = v, :offset = v, :length = v ])
@@get([index,dst,offset,length])
@@get([ :index = v, :dst = v, :offset = v, :length = v ])
ByteBuffer get(byte[] dst)
byte get(int index)
ByteBuffer get(int index, byte[] dst)
ByteBuffer get(byte[] dst, int offset, int length)
ByteBuffer get(int index, byte[] dst, int offset, int length)
@get@get()byte get()
@getChar@getChar(index)char getChar(int index)
@getDouble@getDouble(index)double getDouble(int index)
@getFloat@getFloat(index)float getFloat(int index)
@getInt@getInt(index)int getInt(int index)
@getLong@getLong(index)long getLong(int index)
@getShort@getShort(index)short getShort(int index)
@order@order(bo)ByteBuffer order(ByteOrder bo)
@put@put(src)
@put([index,b])
@put([ :index = v, :b = v ])
@put([src,offset,length])
@put([ :src = v, :offset = v, :length = v ])
@put([index,src,offset,length])
@put([ :index = v, :src = v, :offset = v, :length = v ])
ByteBuffer put(ByteBuffer src)
ByteBuffer put(byte[] src)
ByteBuffer put(byte b)
ByteBuffer put(int index, byte b)
ByteBuffer put(int index, byte[] src)
ByteBuffer put(byte[] src, int offset, int length)
ByteBuffer put(int index, ByteBuffer src, int offset, int length)
ByteBuffer put(int index, byte[] src, int offset, int length)
alignedSlicealignedSlice(unitSize)ByteBuffer alignedSlice(int unitSize)
alignmentOffsetalignmentOffset(index,unitSize)int alignmentOffset(int index, int unitSize)
allocateallocate(capacity)static ByteBuffer allocate(int capacity)
allocateDirectallocateDirect(capacity)static ByteBuffer allocateDirect(int capacity)
asCharBufferasCharBuffer()CharBuffer asCharBuffer()
asDoubleBufferasDoubleBuffer()DoubleBuffer asDoubleBuffer()
asFloatBufferasFloatBuffer()FloatBuffer asFloatBuffer()
asIntBufferasIntBuffer()IntBuffer asIntBuffer()
asLongBufferasLongBuffer()LongBuffer asLongBuffer()
asReadOnlyBufferasReadOnlyBuffer()ByteBuffer asReadOnlyBuffer()
asShortBufferasShortBuffer()ShortBuffer asShortBuffer()
compactcompact()ByteBuffer compact()
compareTocompareTo(that)int compareTo(ByteBuffer that)
getChargetChar()char getChar()
getDoublegetDouble()double getDouble()
getFloatgetFloat()float getFloat()
getIntgetInt()int getInt()
getLonggetLong()long getLong()
getShortgetShort()short getShort()
mismatchmismatch(that)int mismatch(ByteBuffer that)
orderorder()ByteOrder order()
putCharputChar(value)
putChar([index,value])
putChar([ :index = v, :value = v ])
ByteBuffer putChar(char value)
ByteBuffer putChar(int index, char value)
putDoubleputDouble(value)
putDouble([index,value])
putDouble([ :index = v, :value = v ])
ByteBuffer putDouble(double value)
ByteBuffer putDouble(int index, double value)
putFloatputFloat(value)
putFloat([index,value])
putFloat([ :index = v, :value = v ])
ByteBuffer putFloat(float value)
ByteBuffer putFloat(int index, float value)
putIntputInt(value)
putInt([index,value])
putInt([ :index = v, :value = v ])
ByteBuffer putInt(int value)
ByteBuffer putInt(int index, int value)
putLongputLong(value)
putLong([index,value])
putLong([ :index = v, :value = v ])
ByteBuffer putLong(long value)
ByteBuffer putLong(int index, long value)
putShortputShort(value)
putShort([index,value])
putShort([ :index = v, :value = v ])
ByteBuffer putShort(short value)
ByteBuffer putShort(int index, short value)
wrapwrap(array)
wrap([array,offset,length])
wrap([ :array = v, :offset = v, :length = v ])
static ByteBuffer wrap(byte[] array)
static ByteBuffer wrap(byte[] array, int offset, int length)

The methods and fields of Buffer are inherited.

ByteOrder#

class final · extends Object · java.nio.ByteOrder

Fields

NameTypeAccessIn Ring
BIG_ENDIANByteOrderconstant · statico.BIG_ENDIAN
LITTLE_ENDIANByteOrderconstant · statico.LITTLE_ENDIAN

Methods

MethodRing callJava overloads
nativeOrdernativeOrder()static ByteOrder nativeOrder()

The methods and fields of Object are inherited.

CharBuffer#

abstract · extends Buffer · java.nio.CharBuffer

Implements: Comparable, Appendable, CharSequence, Readable

Methods

MethodRing callJava overloads
@@get@@get(dst)
@@get([index,dst])
@@get([ :index = v, :dst = v ])
@@get([dst,offset,length])
@@get([ :dst = v, :offset = v, :length = v ])
@@get([index,dst,offset,length])
@@get([ :index = v, :dst = v, :offset = v, :length = v ])
CharBuffer get(char[] dst)
char get(int index)
CharBuffer get(int index, char[] dst)
CharBuffer get(char[] dst, int offset, int length)
CharBuffer get(int index, char[] dst, int offset, int length)
@get@get()char get()
@put@put(src)
@put([index,c])
@put([ :index = v, :c = v ])
@put([src,offset,length])
@put([ :src = v, :offset = v, :length = v ])
@put([index,src,offset,length])
@put([ :index = v, :src = v, :offset = v, :length = v ])
CharBuffer put(CharBuffer src)
CharBuffer put(char[] src)
CharBuffer put(String src)
CharBuffer put(char c)
CharBuffer put(int index, char c)
CharBuffer put(int index, char[] src)
CharBuffer put(char[] src, int offset, int length)
CharBuffer put(String src, int start, int end)
CharBuffer put(int index, CharBuffer src, int offset, int length)
CharBuffer put(int index, char[] src, int offset, int length)
allocateallocate(capacity)static CharBuffer allocate(int capacity)
appendappend(csq)
append([csq,start,end])
append([ :csq = v, :start = v, :end = v ])
CharBuffer append(CharSequence csq)
CharBuffer append(char c)
CharBuffer append(CharSequence csq, int start, int end)
asReadOnlyBufferasReadOnlyBuffer()CharBuffer asReadOnlyBuffer()
charAtcharAt(index)char charAt(int index)
charschars()IntStream chars()
codePointscodePoints()IntStream codePoints()
compactcompact()CharBuffer compact()
compareTocompareTo(that)int compareTo(CharBuffer that)
getCharsgetChars(srcBegin,srcEnd,dst,dstBegin)void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
isEmptyisEmpty()boolean isEmpty()
lengthlength()int length()
mismatchmismatch(that)int mismatch(CharBuffer that)
orderorder()ByteOrder order()
readread(target)int read(CharBuffer target)
subSequencesubSequence(start,end)CharBuffer subSequence(int start, int end)
wrapwrap(array)
wrap([csq,start,end])
wrap([ :csq = v, :start = v, :end = v ])
static CharBuffer wrap(char[] array)
static CharBuffer wrap(CharSequence csq)
static CharBuffer wrap(CharSequence csq, int start, int end)
static CharBuffer wrap(char[] array, int offset, int length)

The methods and fields of Buffer are inherited.

DoubleBuffer#

abstract · extends Buffer · java.nio.DoubleBuffer

Implements: Comparable

Methods

MethodRing callJava overloads
@@get@@get(index)
@@get([index,dst])
@@get([ :index = v, :dst = v ])
@@get([dst,offset,length])
@@get([ :dst = v, :offset = v, :length = v ])
@@get([index,dst,offset,length])
@@get([ :index = v, :dst = v, :offset = v, :length = v ])
double get(int index)
DoubleBuffer get(double[] dst)
DoubleBuffer get(int index, double[] dst)
DoubleBuffer get(double[] dst, int offset, int length)
DoubleBuffer get(int index, double[] dst, int offset, int length)
@get@get()double get()
@put@put(src)
@put([index,src])
@put([ :index = v, :src = v ])
@put([src,offset,length])
@put([ :src = v, :offset = v, :length = v ])
@put([index,src,offset,length])
@put([ :index = v, :src = v, :offset = v, :length = v ])
DoubleBuffer put(DoubleBuffer src)
DoubleBuffer put(double[] src)
DoubleBuffer put(double d)
DoubleBuffer put(int index, double[] src)
DoubleBuffer put(int index, double d)
DoubleBuffer put(double[] src, int offset, int length)
DoubleBuffer put(int index, DoubleBuffer src, int offset, int length)
DoubleBuffer put(int index, double[] src, int offset, int length)
allocateallocate(capacity)static DoubleBuffer allocate(int capacity)
asReadOnlyBufferasReadOnlyBuffer()DoubleBuffer asReadOnlyBuffer()
compactcompact()DoubleBuffer compact()
compareTocompareTo(that)int compareTo(DoubleBuffer that)
mismatchmismatch(that)int mismatch(DoubleBuffer that)
orderorder()ByteOrder order()
wrapwrap(array)
wrap([array,offset,length])
wrap([ :array = v, :offset = v, :length = v ])
static DoubleBuffer wrap(double[] array)
static DoubleBuffer wrap(double[] array, int offset, int length)

The methods and fields of Buffer are inherited.

FloatBuffer#

abstract · extends Buffer · java.nio.FloatBuffer

Implements: Comparable

Methods

MethodRing callJava overloads
@@get@@get(index)
@@get([index,dst])
@@get([ :index = v, :dst = v ])
@@get([dst,offset,length])
@@get([ :dst = v, :offset = v, :length = v ])
@@get([index,dst,offset,length])
@@get([ :index = v, :dst = v, :offset = v, :length = v ])
float get(int index)
FloatBuffer get(float[] dst)
FloatBuffer get(int index, float[] dst)
FloatBuffer get(float[] dst, int offset, int length)
FloatBuffer get(int index, float[] dst, int offset, int length)
@get@get()float get()
@put@put(src)
@put([index,src])
@put([ :index = v, :src = v ])
@put([src,offset,length])
@put([ :src = v, :offset = v, :length = v ])
@put([index,src,offset,length])
@put([ :index = v, :src = v, :offset = v, :length = v ])
FloatBuffer put(FloatBuffer src)
FloatBuffer put(float[] src)
FloatBuffer put(float f)
FloatBuffer put(int index, float[] src)
FloatBuffer put(int index, float f)
FloatBuffer put(float[] src, int offset, int length)
FloatBuffer put(int index, FloatBuffer src, int offset, int length)
FloatBuffer put(int index, float[] src, int offset, int length)
allocateallocate(capacity)static FloatBuffer allocate(int capacity)
asReadOnlyBufferasReadOnlyBuffer()FloatBuffer asReadOnlyBuffer()
compactcompact()FloatBuffer compact()
compareTocompareTo(that)int compareTo(FloatBuffer that)
mismatchmismatch(that)int mismatch(FloatBuffer that)
orderorder()ByteOrder order()
wrapwrap(array)
wrap([array,offset,length])
wrap([ :array = v, :offset = v, :length = v ])
static FloatBuffer wrap(float[] array)
static FloatBuffer wrap(float[] array, int offset, int length)

The methods and fields of Buffer are inherited.

IntBuffer#

abstract · extends Buffer · java.nio.IntBuffer

Implements: Comparable

Methods

MethodRing callJava overloads
@@get@@get(index)
@@get([index,dst])
@@get([ :index = v, :dst = v ])
@@get([dst,offset,length])
@@get([ :dst = v, :offset = v, :length = v ])
@@get([index,dst,offset,length])
@@get([ :index = v, :dst = v, :offset = v, :length = v ])
int get(int index)
IntBuffer get(int[] dst)
IntBuffer get(int index, int[] dst)
IntBuffer get(int[] dst, int offset, int length)
IntBuffer get(int index, int[] dst, int offset, int length)
@get@get()int get()
@put@put(src)
@put([index,src])
@put([ :index = v, :src = v ])
@put([src,offset,length])
@put([ :src = v, :offset = v, :length = v ])
@put([index,src,offset,length])
@put([ :index = v, :src = v, :offset = v, :length = v ])
IntBuffer put(IntBuffer src)
IntBuffer put(int[] src)
IntBuffer put(int i)
IntBuffer put(int index, int[] src)
IntBuffer put(int index, int i)
IntBuffer put(int[] src, int offset, int length)
IntBuffer put(int index, IntBuffer src, int offset, int length)
IntBuffer put(int index, int[] src, int offset, int length)
allocateallocate(capacity)static IntBuffer allocate(int capacity)
asReadOnlyBufferasReadOnlyBuffer()IntBuffer asReadOnlyBuffer()
compactcompact()IntBuffer compact()
compareTocompareTo(that)int compareTo(IntBuffer that)
mismatchmismatch(that)int mismatch(IntBuffer that)
orderorder()ByteOrder order()
wrapwrap(array)
wrap([array,offset,length])
wrap([ :array = v, :offset = v, :length = v ])
static IntBuffer wrap(int[] array)
static IntBuffer wrap(int[] array, int offset, int length)

The methods and fields of Buffer are inherited.

InvalidMarkException#

class · extends IllegalStateException · java.nio.InvalidMarkException

Constructors

new InvalidMarkException()

Ring: new InvalidMarkException(args) uses the constructor with the fewest parameters (at least one); new InvalidMarkException makes the object with the constructor without parameters; the others: (new InvalidMarkException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of IllegalStateException are inherited.

LongBuffer#

abstract · extends Buffer · java.nio.LongBuffer

Implements: Comparable

Methods

MethodRing callJava overloads
@@get@@get(index)
@@get([index,dst])
@@get([ :index = v, :dst = v ])
@@get([dst,offset,length])
@@get([ :dst = v, :offset = v, :length = v ])
@@get([index,dst,offset,length])
@@get([ :index = v, :dst = v, :offset = v, :length = v ])
long get(int index)
LongBuffer get(long[] dst)
LongBuffer get(int index, long[] dst)
LongBuffer get(long[] dst, int offset, int length)
LongBuffer get(int index, long[] dst, int offset, int length)
@get@get()long get()
@put@put(src)
@put([index,src])
@put([ :index = v, :src = v ])
@put([src,offset,length])
@put([ :src = v, :offset = v, :length = v ])
@put([index,src,offset,length])
@put([ :index = v, :src = v, :offset = v, :length = v ])
LongBuffer put(LongBuffer src)
LongBuffer put(long[] src)
LongBuffer put(long l)
LongBuffer put(int index, long[] src)
LongBuffer put(int index, long l)
LongBuffer put(long[] src, int offset, int length)
LongBuffer put(int index, LongBuffer src, int offset, int length)
LongBuffer put(int index, long[] src, int offset, int length)
allocateallocate(capacity)static LongBuffer allocate(int capacity)
asReadOnlyBufferasReadOnlyBuffer()LongBuffer asReadOnlyBuffer()
compactcompact()LongBuffer compact()
compareTocompareTo(that)int compareTo(LongBuffer that)
mismatchmismatch(that)int mismatch(LongBuffer that)
orderorder()ByteOrder order()
wrapwrap(array)
wrap([array,offset,length])
wrap([ :array = v, :offset = v, :length = v ])
static LongBuffer wrap(long[] array)
static LongBuffer wrap(long[] array, int offset, int length)

The methods and fields of Buffer are inherited.

MappedByteBuffer#

abstract · extends ByteBuffer · java.nio.MappedByteBuffer

Methods

MethodRing callJava overloads
@force@force([index,length])
@force([ :index = v, :length = v ])
MappedByteBuffer force(int index, int length)
@load@load()MappedByteBuffer load()
forceforce()MappedByteBuffer force()
isLoadedisLoaded()boolean isLoaded()

The methods and fields of ByteBuffer are inherited.

ReadOnlyBufferException#

class · extends UnsupportedOperationException · java.nio.ReadOnlyBufferException

Constructors

new ReadOnlyBufferException()

Ring: new ReadOnlyBufferException(args) uses the constructor with the fewest parameters (at least one); new ReadOnlyBufferException makes the object with the constructor without parameters; the others: (new ReadOnlyBufferException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of UnsupportedOperationException are inherited.

ShortBuffer#

abstract · extends Buffer · java.nio.ShortBuffer

Implements: Comparable

Methods

MethodRing callJava overloads
@@get@@get(index)
@@get([index,dst])
@@get([ :index = v, :dst = v ])
@@get([dst,offset,length])
@@get([ :dst = v, :offset = v, :length = v ])
@@get([index,dst,offset,length])
@@get([ :index = v, :dst = v, :offset = v, :length = v ])
short get(int index)
ShortBuffer get(short[] dst)
ShortBuffer get(int index, short[] dst)
ShortBuffer get(short[] dst, int offset, int length)
ShortBuffer get(int index, short[] dst, int offset, int length)
@get@get()short get()
@put@put(src)
@put([index,src])
@put([ :index = v, :src = v ])
@put([src,offset,length])
@put([ :src = v, :offset = v, :length = v ])
@put([index,src,offset,length])
@put([ :index = v, :src = v, :offset = v, :length = v ])
ShortBuffer put(ShortBuffer src)
ShortBuffer put(short[] src)
ShortBuffer put(short s)
ShortBuffer put(int index, short[] src)
ShortBuffer put(int index, short s)
ShortBuffer put(short[] src, int offset, int length)
ShortBuffer put(int index, ShortBuffer src, int offset, int length)
ShortBuffer put(int index, short[] src, int offset, int length)
allocateallocate(capacity)static ShortBuffer allocate(int capacity)
asReadOnlyBufferasReadOnlyBuffer()ShortBuffer asReadOnlyBuffer()
compactcompact()ShortBuffer compact()
compareTocompareTo(that)int compareTo(ShortBuffer that)
mismatchmismatch(that)int mismatch(ShortBuffer that)
orderorder()ByteOrder order()
wrapwrap(array)
wrap([array,offset,length])
wrap([ :array = v, :offset = v, :length = v ])
static ShortBuffer wrap(short[] array)
static ShortBuffer wrap(short[] array, int offset, int length)

The methods and fields of Buffer are inherited.

RingJava - use Java classes and methods from Ring programs.