Skip to content

Tag Archives: Java-NIO package

The equals() method of java.nio.ByteBuffer class is used to check whether or not the given buffer is equal to another object. Two byte buffers are… Read More
put(double f) The put(double f) method of java.nio.DoubleBuffer Class is used to write the given double into the newly created double buffer at the current… Read More
The equals() method of java.nio.CharBuffer Class is used to check whether or not the given buffer is equal to another object. Two char buffers are… Read More
The duplicate() method of java.nio.DoubleBuffer Class is used to Create a new float buffer that shares the given buffer’s content. The content of the new… Read More
The allocate() method of java.nio.DoubleBuffer Class is used to allocate a new double buffer next to the existing buffer. The new buffer’s position will be… Read More
The compact() method of java.nio.DoubleBuffer Class is used to compact the given buffer. The values between the buffer’s current position and its limit are copied… Read More
The toString() method in java.nio.ShortBuffer is used to return a string summarizing the state of this buffer. Syntax: public String toString() Return Value:The method returns… Read More
The asReadOnlyBuffer() method of java.nio.DoubleBuffer Class is used to create a new, read-only double buffer with this buffer’s content. The new buffer is a replica… Read More
The compareTo() method of java.nio.DoubleBuffer class is used to compare one buffer to another. Two double buffers are compared by comparing their sequences of remaining… Read More
The slice() method of java.nio.DoubleBuffer Class is used to creates a new double buffer whose content is a shared subsequence of the given buffer’s content.… Read More
The equals() method of java.nio.DoubleBuffer Class is used to check whether or not the given buffer is equal to another object. Two double buffers are… Read More
The compact() method of java.nio.ByteBuffer class is used to compact the given buffer.The bytes between the buffer’s current position and its limit, if any, are… Read More
The duplicate() method of java.nio.ByteBuffer class is used to create a new byte buffer that shares this buffer’s content. The content of the new buffer… Read More
get() The get() method of java.nio.ByteBuffer class is used to read the byte at the buffer’s current position, and then increments the position. Syntax :… Read More
The slice() method of java.nio.ShortBuffer Class is used to create a new short buffer whose content is a shared subsequence of this buffer’s content.  The… Read More

Start Your Coding Journey Now!