Skip to content

Tag Archives: Java-NIO package

The read() method of java.nio.CharBuffer Class is used to read characters into the specified character buffer. The buffer is used as a repository of characters… Read More
The limit() method of java.nio.CharBuffer Class is used to set this buffer’s limit. If the position is larger than the new limit then it is… Read More
The flip() method of java.nio.CharBuffer Class is used to flip this buffer. The limit is set to the current position and then the position is… Read More
The order() method of java.nio.CharBuffer class is used to retrieve this buffer’s byte order. The byte order of a char buffer created by allocation or… Read More
The mark() method of java.nio.CharBuffer Class is used to set this buffer’s mark at its position. Syntax: public CharBuffer mark() Return Value: This method returns… Read More
The charAt() method of java.nio.CharBuffer Class is used to read the character at the given index relative to the current position. Syntax: public final char… Read More
The length() method of java.nio.CharBuffer Class is used to return the length of this character buffer. When viewed as a character sequence, the length of… Read More
The chars() method of java.nio.CharBuffer Class is used to return a stream of int zero-extending the char values from this sequence. Any char which maps… Read More
The rewind() method of java.nio.ByteBuffer Class is used to rewind this buffer. The position is set to zero and the mark is discarded. Invoke this… Read More
The duplicate() method of java.nio.Buffer class is used to create a new buffer that shares this buffer’s content. The content of the new buffer will… Read More
The clear() method of java.nio.CharBuffer Class is used to clear this buffer. The position is set to zero, the limit is set to the capacity,… Read More
The hasArray() method of java.nio.Buffer class is used to tell whether or not this buffer is backed by an accessible array. If this method returns… Read More
The flip() method of java.nio.ByteBuffer Class is used to flip this buffer. The limit is set to the current position and then the position is… Read More
The mark() method of java.nio.Buffer Class is used to set this buffer’s mark at its position.Syntax:   public Buffer mark() Return Value: This method returns this… Read More
The capacity() method of java.nio.Buffer Class is used to return this buffer’s capacity. Syntax: public final int capacity() Return Value: The capacity of this buffer… Read More

Start Your Coding Journey Now!