Skip to content

Tag Archives: Java-NIO package

put(Long i) The put(Long i) method of java.nio.LongBuffer Class is used to write the given Long value into the newly created Long buffer at the… Read More
compareTo() method of java.nio.charBuffer class is used to compare one buffer to another. Two char buffers are compared by comparing their sequences of remaining elements… Read More
The asCharBuffer() method of java.nio.ByteBuffer class is used to create a view of this byte buffer as a char buffer.The content of the new buffer… Read More
get() The get() method of java.nio.IntBuffer Class is used to reads the int at the given buffer’s current position, and then increments the position. Syntax… Read More
put(int i) The put(int i) method of java.nio.IntBuffer Class is used to write the given int into the newly created int buffer at the current… Read More
The arrayOffset() method of java.nio.IntBuffer class is used to return the offset within the buffer’s backing array of the first element of the buffer. It… Read More
wrap(char[ ] array) The wrap() method of java.nio.CharBuffer Class is used to wrap a character array into a buffer. The new buffer will be backed… Read More
The array() method of java.nio.ByteBuffer class is used to return the byte array that backs the taken buffer.Modifications to this buffer’s content will cause the… Read More
The duplicate() method of java.nio.LongBuffer Class is used to Create a new Long buffer that shares the given buffer’s content. Syntax:Attention reader! Don’t stop learning… Read More
The compact() method of java.nio.CharBuffer Class is used to compact the given buffer. The values between the buffer’s current position and its limit are copied… Read More
The allocate() method of java.nio.ByteBuffer class is used to allocate a new byte buffer. The new buffer’s position will be zero, its limit will be… Read More
slice() method of java.nio.charBuffer Class is used to create a new char buffer whose content is a shared subsequence of the given buffer’s content. The… Read More
The hasArray() method of java.nio.ShortBuffer class is used to ensure whether or not the given buffer is backed by an accessible float array. It returns… Read More
The duplicate() method of java.nio.CharBuffer Class is used to Create a new char buffer that shares the given buffer’s content. The content of the new… Read More
The equals() method of java.nio.IntBuffer Class is used to check whether or not the given buffer is equal to another object. Two int buffers are… Read More