Skip to content

Tag Archives: Java-NIO package

The mark() method of java.nio.IntBuffer Class is used to mark the current position of this IntBuffer as the mark of this buffer. Syntax: public final… Read More
The limit() method of java.nio.IntBuffer Class is used to modify this IntBuffer’s limit. This method takes the limit to be set as the parameter and… Read More
The flip() method of java.nio.IntBuffer Class is used to flip this buffer. By flipping this buffer, it meant that the buffer will be trimmed to… Read More
The limit() method of java.nio.LongBuffer Class is used to modify this LongBuffer’s limit. This method takes the limit to be set as the parameter and… Read More
The clear() method of java.nio.IntBuffer Class is used to clear this buffer. While clearing this buffer following changes are done: the position is set to… Read More
The clear() method of java.nio.LongBuffer Class is used to clear this buffer. While clearing this buffer following changes are done: the position is set to… 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 DoubleBuffer 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 reset() method of java.nio.CharBuffer Class is used to reset this buffer’s position to the previously-marked position. Invoking this method neither changes nor discards the… Read More
The subSequence() method of java.nio.CharBuffer Class is used to create a new character buffer that represents the specified subsequence of this buffer, relative to the… Read More
The rewind() method of java.nio.CharBuffer Class is used to rewind this buffer. The position is set to zero and the mark is discarded. Invoke this… Read More
The position(int newPosition) method of java.nio.CharBuffer Class is used to set this buffer’s position. If the mark is defined and larger than the new position… Read More

Start Your Coding Journey Now!