Skip to content

Tag Archives: Java-NIO package

The array() method of java.nio.DoubleBuffer Class is used to Return the double array that backs this buffer. Modifications to this buffer’s content will cause the… Read More
The allocate() method of java.nio.ShortBuffer Class is used to allocate a new short buffer.The position of the new Buffer will be zero & it’s limit… Read More
The duplicate() method of java.nio.IntBuffer Class is used to create a new IntBuffer that shares the given buffer’s content, identically in all aspects. Syntax:Attention reader!… Read More
The compact() method of java.nio.ShortBuffer Class is used to compact the given buffer. The shorts between the buffer’s current position and its limit, if any,… Read More
The equals() method of java.nio.LongBuffer Class is used to check whether or not the given buffer is equal to another object. Two Long buffers are… Read More
The array() method of java.nio.IntBuffer Class is used to Return the int array that backs this buffer. Modifications to this buffer’s content will cause the… Read More
The compact() method of java.nio.IntBuffer Class is used to compact the given buffer. The values between the buffer’s current position and its limit are copied… Read More
The array() method of java.nio.ShortBuffer is used to return the short array that backs this buffer(optional). Modifications to this buffer’s content will cause the returned… Read More
The hasArray() method of java.nio.IntBuffer class is used to ensure whether or not the given buffer is backed by an accessible int array. It returns… Read More
The arrayOffset() method of java.nio.ShortBuffer class is used to return the offset within the buffer’s backing array of the first element of the buffer. It… Read More
The asReadOnlyBuffer() method of java.nio.ShortBuffer Class is used to create a new, read-only short buffer with this buffer’s content. The new buffer is a replica… Read More
The asDoubleBuffer() method of java.nio.ByteBuffer class is used to create a view of this byte buffer as a double buffer.The content of the new buffer… Read More
The allocate() method of java.nio.IntBuffer Class is used to allocate a new int buffer next to the existing buffer. The new buffer’s position will be… Read More
The duplicate() method of java.nio.ShortBuffer Class creates a new short buffer that shares this buffer’s content. The content of the new buffer will be that… Read More
The slice() method of java.nio.IntBuffer Class is used to creates a new int buffer whose content is a shared subsequence of the given buffer’s content.… Read More