Skip to content

Tag Archives: Java-NIO package

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:Attention reader! Don’t stop learning now. Get hold… 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() Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java… 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
The compareTo() method of java.nio.ByteBuffer class is used to compare one buffer to another. Two byte buffers are compared by comparing their sequences of remaining elements… Read More
The asLongBuffer() method of java.nio.ByteBuffer class is used to create a view of this byte buffer as a long buffer.The content of the new buffer… Read More
put(char i) The put(char i) method of java.nio.CharBuffer Class is used to write the given character into the newly created char buffer at the current… Read More
The asReadOnlyBuffer() method of java.nio.ByteBuffer class is used to create a new, read-only byte buffer that shares this buffer’s content. The content of the new… Read More