Tag Archives: Java-CharBuffer

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
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 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 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 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 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
append(char c) The append(char c) method of java.nio.CharBuffer Class is used to append the specified char to this buffer (optional operation). An invocation of this… Read More
The equals() method of java.nio.CharBuffer Class is used to check whether or not the given buffer is equal to another object. Two char buffers are… Read More