Tag Archives: Java-NIO package

Java IO(Input/Output) is used to perform read and write operations. The java.io package contains all the classes required for input and output operation. Whereas, Java… Read More
Java IO(Input/Output) is used to perform read and write operations. The java.io package contains all the classes required for input and output operation. Whereas, Java… Read More
The reset() method of java.nio.FloatBuffer Class is used to reset the position of this buffer to a position which was previously-marked. In this, the marked… Read More
The limit() method of java.nio.FloatBuffer Class is used to modify this FloatBuffer’s limit. This method takes the limit to be set as the parameter and… Read More
The mark() method of java.nio.FloatBuffer Class is used to mark the current position of this FloatBuffer as the mark of this buffer. Syntax: public final… 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.FloatBuffer Class is used to rewind this buffer. This method sets the position to zero and limit remains unaffected and if… Read More
The clear() method of java.nio.FloatBuffer Class is used to clear this buffer. This method set the position and limit equal to zero and capacity respectively… 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 rewind() method of java.nio.LongBuffer Class is used to rewind this buffer. By rewinding this Buffer, the following actions are taken: Current position is set… Read More
The limit() method of java.nio.ShortBuffer Class is used to modify this ShortBuffer’s limit. This method takes the limit to be set as the parameter and… Read More
The reset() method of java.nio.ShortBuffer Class is used to reset this buffer’s position to the previously-marked position. The mark’s value remain unchanged during this process.… Read More
The flip() method of java.nio.LongBuffer Class is used to flip this buffer. By flipping this buffer, it meant that the buffer will be trimmed to… Read More
The mark() method of java.nio.ShortBuffer Class is used to mark the current position of this ShortBuffer as the mark of this buffer. Syntax: public ShortBuffer… Read More
The mark() method of java.nio.LongBuffer Class is used to mark the current position of this LongBuffer as the mark of this buffer. Syntax: public LongBuffer… Read More