java.nio
14 classes of the module java.base.
Load them with:
using {
"java.nio"
}
Buffer#
abstract · extends Object · java.nio.Buffer
Methods
| Method | Ring call | Java 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) |
array | array() | Object array() |
arrayOffset | arrayOffset() | int arrayOffset() |
capacity | capacity() | int capacity() |
clear | clear() | Buffer clear() |
duplicate | duplicate() | Buffer duplicate() |
flip | flip() | Buffer flip() |
hasArray | hasArray() | boolean hasArray() |
hasRemaining | hasRemaining() | boolean hasRemaining() |
isDirect | isDirect() | boolean isDirect() |
isReadOnly | isReadOnly() | boolean isReadOnly() |
limit | limit() | int limit() |
mark | mark() | Buffer mark() |
position | position() | int position() |
remaining | remaining() | int remaining() |
reset | reset() | Buffer reset() |
rewind | rewind() | Buffer rewind() |
slice | slice() | 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
| Method | Ring call | Java 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) |
alignedSlice | alignedSlice(unitSize) | ByteBuffer alignedSlice(int unitSize) |
alignmentOffset | alignmentOffset(index,unitSize) | int alignmentOffset(int index, int unitSize) |
allocate | allocate(capacity) | static ByteBuffer allocate(int capacity) |
allocateDirect | allocateDirect(capacity) | static ByteBuffer allocateDirect(int capacity) |
asCharBuffer | asCharBuffer() | CharBuffer asCharBuffer() |
asDoubleBuffer | asDoubleBuffer() | DoubleBuffer asDoubleBuffer() |
asFloatBuffer | asFloatBuffer() | FloatBuffer asFloatBuffer() |
asIntBuffer | asIntBuffer() | IntBuffer asIntBuffer() |
asLongBuffer | asLongBuffer() | LongBuffer asLongBuffer() |
asReadOnlyBuffer | asReadOnlyBuffer() | ByteBuffer asReadOnlyBuffer() |
asShortBuffer | asShortBuffer() | ShortBuffer asShortBuffer() |
compact | compact() | ByteBuffer compact() |
compareTo | compareTo(that) | int compareTo(ByteBuffer that) |
getChar | getChar() | char getChar() |
getDouble | getDouble() | double getDouble() |
getFloat | getFloat() | float getFloat() |
getInt | getInt() | int getInt() |
getLong | getLong() | long getLong() |
getShort | getShort() | short getShort() |
mismatch | mismatch(that) | int mismatch(ByteBuffer that) |
order | order() | ByteOrder order() |
putChar | putChar(value)putChar([index,value])putChar([ :index = v, :value = v ]) | ByteBuffer putChar(char value)ByteBuffer putChar(int index, char value) |
putDouble | putDouble(value)putDouble([index,value])putDouble([ :index = v, :value = v ]) | ByteBuffer putDouble(double value)ByteBuffer putDouble(int index, double value) |
putFloat | putFloat(value)putFloat([index,value])putFloat([ :index = v, :value = v ]) | ByteBuffer putFloat(float value)ByteBuffer putFloat(int index, float value) |
putInt | putInt(value)putInt([index,value])putInt([ :index = v, :value = v ]) | ByteBuffer putInt(int value)ByteBuffer putInt(int index, int value) |
putLong | putLong(value)putLong([index,value])putLong([ :index = v, :value = v ]) | ByteBuffer putLong(long value)ByteBuffer putLong(int index, long value) |
putShort | putShort(value)putShort([index,value])putShort([ :index = v, :value = v ]) | ByteBuffer putShort(short value)ByteBuffer putShort(int index, short value) |
wrap | wrap(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
| Name | Type | Access | In Ring |
|---|---|---|---|
BIG_ENDIAN | ByteOrder | constant · static | o.BIG_ENDIAN |
LITTLE_ENDIAN | ByteOrder | constant · static | o.LITTLE_ENDIAN |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
nativeOrder | nativeOrder() | static ByteOrder nativeOrder() |
The methods and fields of Object are inherited.
CharBuffer#
abstract · extends Buffer · java.nio.CharBuffer
Implements: Comparable, Appendable, CharSequence, Readable
Methods
| Method | Ring call | Java 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) |
allocate | allocate(capacity) | static CharBuffer allocate(int capacity) |
append | append(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) |
asReadOnlyBuffer | asReadOnlyBuffer() | CharBuffer asReadOnlyBuffer() |
charAt | charAt(index) | char charAt(int index) |
chars | chars() | IntStream chars() |
codePoints | codePoints() | IntStream codePoints() |
compact | compact() | CharBuffer compact() |
compareTo | compareTo(that) | int compareTo(CharBuffer that) |
getChars | getChars(srcBegin,srcEnd,dst,dstBegin) | void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) |
isEmpty | isEmpty() | boolean isEmpty() |
length | length() | int length() |
mismatch | mismatch(that) | int mismatch(CharBuffer that) |
order | order() | ByteOrder order() |
read | read(target) | int read(CharBuffer target) |
subSequence | subSequence(start,end) | CharBuffer subSequence(int start, int end) |
wrap | wrap(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
| Method | Ring call | Java 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) |
allocate | allocate(capacity) | static DoubleBuffer allocate(int capacity) |
asReadOnlyBuffer | asReadOnlyBuffer() | DoubleBuffer asReadOnlyBuffer() |
compact | compact() | DoubleBuffer compact() |
compareTo | compareTo(that) | int compareTo(DoubleBuffer that) |
mismatch | mismatch(that) | int mismatch(DoubleBuffer that) |
order | order() | ByteOrder order() |
wrap | wrap(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
| Method | Ring call | Java 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) |
allocate | allocate(capacity) | static FloatBuffer allocate(int capacity) |
asReadOnlyBuffer | asReadOnlyBuffer() | FloatBuffer asReadOnlyBuffer() |
compact | compact() | FloatBuffer compact() |
compareTo | compareTo(that) | int compareTo(FloatBuffer that) |
mismatch | mismatch(that) | int mismatch(FloatBuffer that) |
order | order() | ByteOrder order() |
wrap | wrap(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
| Method | Ring call | Java 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) |
allocate | allocate(capacity) | static IntBuffer allocate(int capacity) |
asReadOnlyBuffer | asReadOnlyBuffer() | IntBuffer asReadOnlyBuffer() |
compact | compact() | IntBuffer compact() |
compareTo | compareTo(that) | int compareTo(IntBuffer that) |
mismatch | mismatch(that) | int mismatch(IntBuffer that) |
order | order() | ByteOrder order() |
wrap | wrap(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
| Method | Ring call | Java 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) |
allocate | allocate(capacity) | static LongBuffer allocate(int capacity) |
asReadOnlyBuffer | asReadOnlyBuffer() | LongBuffer asReadOnlyBuffer() |
compact | compact() | LongBuffer compact() |
compareTo | compareTo(that) | int compareTo(LongBuffer that) |
mismatch | mismatch(that) | int mismatch(LongBuffer that) |
order | order() | ByteOrder order() |
wrap | wrap(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
| Method | Ring call | Java overloads |
|---|---|---|
@force | @force([index,length])@force([ :index = v, :length = v ]) | MappedByteBuffer force(int index, int length) |
@load | @load() | MappedByteBuffer load() |
force | force() | MappedByteBuffer force() |
isLoaded | isLoaded() | 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
| Method | Ring call | Java 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) |
allocate | allocate(capacity) | static ShortBuffer allocate(int capacity) |
asReadOnlyBuffer | asReadOnlyBuffer() | ShortBuffer asReadOnlyBuffer() |
compact | compact() | ShortBuffer compact() |
compareTo | compareTo(that) | int compareTo(ShortBuffer that) |
mismatch | mismatch(that) | int mismatch(ShortBuffer that) |
order | order() | ByteOrder order() |
wrap | wrap(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.