Skip to content

Tag Archives: Java-NIO package

The put() method of java.nio.ShortBuffer Class is used to write the given short into this buffer at the given index. Syntax: public abstract ShortBuffer put(int… Read More
The hashCode() method of java.nio.ShortBuffer is used to return the hash code for a particular buffer. The hash code of a short buffer depends only… Read More
getShort() The getShort() method of java.nio.ByteBuffer class is used to read the next two bytes at this buffer’s current position, composing them into a short… Read More
getDouble() The getDouble() method of java.nio.ByteBuffer class is used to read the next eight bytes at this buffer’s current position, composing them into a double… Read More
order() The order() method of java.nio.ByteBuffer class is used to retrieve this buffer’s byte order. The byte order is used when reading or writing multibyte… Read More
getLong() The getLong() method of java.nio.ByteBuffer class is used to read the next eight bytes at this buffer’s current position, composing them into a long… Read More
The hasArray() method of java.nio.ByteBuffer class is used to ensure whether or not the given buffer is backed by an accessible byte array. It returns… Read More
The isDirect() method of java.nio.ShortBuffer is used to check whether or not this short buffer is direct. Syntax: public abstract boolean isDirect() Return Value: The… Read More
getChar() The getChar() method of java.nio.ByteBuffer class is used to get method for reading a char value Reads the next two bytes at this buffer’s… Read More
getInt() The getInt() method of java.nio.ByteBuffer class is used to read the next four bytes at this buffer’s current position, composing them into an int… Read More
The hashCode() method of java.nio.ByteBuffer class is used to return the current hash code of this buffer. The hash code of a byte buffer depends… Read More
The get() method of java.nio.DoubleBuffer Class is used to reads the double at the given buffer’s current position, and then increments the position. Syntax: public… Read More
getFloat() The getFloat() method of java.nio.ByteBuffer class is used to read the next four bytes at this buffer’s current position, composing them into a float… Read More
The defaultCharset() method is a built-in method of the java.nio.charset which returns the charset object for the default charset. The default charset is basically determined… Read More
The charset() method is a built-in method of the java.nio.charset.CharsetEncoder returns the charset that created this encoder. Syntax: public final Charset charset() Parameters: The function… Read More

Start Your Coding Journey Now!