Skip to content

Tag Archives: Java-DoubleBuffer

DoubleBuffer holds a sequence of double values to be used in an I/O operation. The DoubleBuffer class provides the following four categories of operations upon… Read More
The reset() method of java.nio.DoubleBuffer Class is used to reset the position of this buffer to a position which was previously-marked. In this, neither a… Read More
The rewind() method of java.nio.DoubleBuffer Class is used to rewind this buffer. This method sets the position to zero and the limit remains unaffected and… Read More
The mark() method of java.nio.DoubleBuffer Class is used to mark the current position of this DoubleBuffer as the mark of this buffer. Syntax: public DoubleBuffer… Read More
The flip() method of java.nio.DoubleBuffer Class is used to flip this buffer. By flipping this buffer, it meant that the buffer will be trimmed to… Read More
The order() method of java.nio.DoubleBuffer class is used to get the ByteOrder of this DoubleBuffe instance. Syntax: public abstract ByteOrder order() Return Value: This method… Read More
The clear() method of java.nio.CharBuffer Class is used to clear this buffer. While clearing this buffer following changes are done: the position is set to… Read More
The limit() method of java.nio.DoubleBuffer Class is used to modify this DoubleBuffer’s limit. This method takes the limit to be set as the parameter and… Read More
The get() method of java.nio.DoubleBuffer Class is used to reads the double at the given buffer’s current position, and then increments the position. Syntax: public… Read More
wrap(double[] array) The wrap() method of java.nio.DoubleBuffer Class is used to wraps a double array into a buffer. The new buffer will be backed by… Read More
The arrayOffset() method of java.nio.DoubleBuffer 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.DoubleBuffer class is used to ensure whether or not the given buffer is backed by an accessible float array. It returns… Read More
put(double f) The put(double f) method of java.nio.DoubleBuffer Class is used to write the given double into the newly created double buffer at the current… Read More
The duplicate() method of java.nio.DoubleBuffer Class is used to Create a new float buffer that shares the given buffer’s content. The content of the new… Read More
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