Skip to content

Tag Archives: Java-NIO package

The compareTo() method of java.nio.ShortBuffer class is used to compare one buffer to another. Two short buffers are compared by comparing their sequences of remaining… Read More
get() The get() method of java.nio.LongBuffer Class is used to read the Long at the given buffer’s current position, and then increment the position. Syntax… Read More
The allocateDirect() method of java.nio.ByteBuffer class is used Allocates a new direct byte buffer. The new buffer’s position will be zero, its limit will be… Read More
The asReadOnlyBuffer() method of java.nio.CharBuffer Class is used to create a new, read-only char buffer with this buffer’s content. The new buffer is a replica… Read More
wrap(int[] array) The wrap() method of java.nio.IntBuffer Class is used to wrap a int array into a buffer. The new buffer will be backed by… Read More
The allocate() method of java.nio.LongBuffer Class is used to allocate a new Long buffer next to the existing buffer. The new buffer’s position will be… Read More
The hasArray() method of java.nio.CharBuffer class is used to ensure whether or not the given buffer is backed by an accessible char array. It returns… Read More
wrap(Long[] array) The wrap() method of java.nio.LongBuffer Class is used to wrap a Long array, Longo, a buffer. The new buffer will be backed by… Read More
The array() method of java.nio.CharBuffer Class is used to return the char array that backs this buffer. Any modifications done to this buffer’s content will… Read More
The arrayOffset() method of java.nio.CharBuffer class is used to return the offset within the buffer’s backing array of the first element of the buffer. It… Read More
The arrayOffset() method of java.nio.LongBuffer class is used to return the offset within the buffer’s backing array of the first element of the buffer. It… Read More
The get() method of java.nio.CharBuffer Class is used to reads the char at the given buffer’s current position, and then increments the position. Syntax: public… Read More
The asReadOnlyBuffer() method of java.nio.LongBuffer Class is used to create a new, read-only Long buffer with this buffer’s content. The new buffer is a replica… Read More
The compact() method of java.nio.LongBuffer Class is used to compact the given buffer. The values between the buffer’s current position and its limit are copied… Read More
The slice() method of java.nio.LongBuffer Class is used to creates a new Long buffer whose content is a shared subsequence of the given buffer’s content.… Read More