Skip to content

Tag Archives: Java-NIO package

The asIntBuffer() method of java.nio.ByteBuffer class is used to create a view of this byte buffer as an int buffer. The content of the new… Read More
The allocate() method of java.nio.CharBuffer Class is used to allocate a new char buffer next to the existing buffer. The new buffer’s position will be… Read More
The compareTo() method of java.nio.FloatBuffer class is used to compare one buffer to another. Two float buffers are compared by comparing their sequences of remaining… Read More
The allocate() method of java.nio.FloatBuffer Class is used to allocate a new float buffer next to the existing buffer. The new buffer’s position will be… Read More
The compact() method of java.nio.FloatBuffer Class is used to compact the given buffer. The values between the buffer’s current position and its limit are copied… Read More
The arrayOffset() method of java.nio.FloatBuffer class is used to return the offset within the buffer’s backing array of the first element of the buffer. It… Read More
The hasArray() method of java.nio.FloatBuffer class is used to ensure whether or not the given buffer is backed by an accessible float array. It returns… Read More
The slice() method of java.nio.FloatBuffer Class is used to creates a new float buffer whose content is a shared subsequence of the given buffer’s content.The… Read More
get() The get() method of java.nio.FloatBuffer Class is used to reads the float at the given buffer’s current position, and then increments the position. Syntax… Read More
wrap(float[] array) The wrap() method of java.nio.FloatBuffer Class is used to wraps a float array into a buffer. The new buffer will be backed by… Read More
put(float f) The put(float f) method of java.nio.FloatBuffer Class is used to write the given float into the newly created float buffer at the current… Read More
The equals() method of java.nio.FloatBuffer Class is used to check whether or not the given buffer is equal to another object. Two float buffers are… Read More
The array() method of java.nio.FloatBuffer Class is used to Return the float array that backs this buffer. Modifications to this buffer’s content will cause the… Read More
The duplicate() method of java.nio.FloatBuffer Class is used to Create a new float buffer that shares the given buffer’s content. The content of the new… Read More
The asReadOnlyBuffer() method of java.nio.FloatBuffer Class is used to create a new, read-only float buffer with this buffer’s content. The new buffer is a replica… Read More