Tutorials
GfG Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
DSA
19.9K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.1K+ articles
Java
9.3K+ articles
Misc
7.8K+ articles
Java-Functions
4.2K+ articles
Java - util package
1.6K+ articles
Java-NIO package
230+ articles
Java-CharBuffer
28 posts
Recent Articles
Popular Articles
CharBuffer append() methods in Java with Examples
Last Updated: 07 December 2021
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 method ...
read more
Java
Java-Functions
Java-CharBuffer
Java-NIO package
CharBuffer charAt() methods in Java with Examples
Last Updated: 23 July 2019
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 charAt(int inde...
read more
Java
Java-Functions
Java-CharBuffer
Java-NIO package
CharBuffer chars() methods in Java with Examples
Last Updated: 12 July 2025
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 to a surrogate cod...
read more
Java
Java-Functions
Java-CharBuffer
Java-NIO package
CharBuffer clear() methods in Java with Examples
Last Updated: 23 July 2019
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, and the mark is discarded. Inv...
read more
Java
Java-Functions
Java-CharBuffer
Java-NIO package
CharBuffer flip() methods in Java with Examples
Last Updated: 23 July 2019
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 set to zero. If the mark is d...
read more
Java
Java-Functions
Java-CharBuffer
Java-NIO package
CharBuffer length() methods in Java with Examples
Last Updated: 23 July 2019
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 a character buff...
read more
Java
Java-Functions
Java-CharBuffer
Java-NIO package
CharBuffer limit() methods in Java with Examples
Last Updated: 23 July 2019
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 set to the new limit. If the ma...
read more
Java
Java-Functions
Java-CharBuffer
Java-NIO package
CharBuffer mark() methods in Java with Examples
Last Updated: 23 July 2019
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 this buff...
read more
Java
Java-Functions
Java-CharBuffer
Java-NIO package
CharBuffer order() methods in Java with Examples
Last Updated: 20 October 2021
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 by wrapping an exist...
read more
Java
Java-Functions
Java-CharBuffer
Java-NIO package
CharBuffer position() methods in Java with Examples
Last Updated: 28 July 2019
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 then it is...
read more
Java
Java-Functions
Java-CharBuffer
Java-NIO package
CharBuffer read() methods in Java with Examples
Last Updated: 28 July 2019
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 as-is: the ...
read more
Java
Java-Functions
Java-CharBuffer
Java-NIO package
CharBuffer reset() methods in Java with Examples
Last Updated: 30 July 2019
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 discard...
read more
Java
Java-Functions
Java-CharBuffer
Java-NIO package
CharBuffer rewind() methods in Java with Examples
Last Updated: 30 July 2019
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 method before a sequence...
read more
Java
Java-Functions
Java-CharBuffer
Java-NIO package
CharBuffer subSequence() methods in Java with Examples
Last Updated: 30 September 2019
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 cu...
read more
Java
Java-Functions
Java-CharBuffer
Java-NIO package
java.nio.CharBuffer Class in Java
Last Updated: 29 March 2021
CharBuffer holds a sequence of integer values to be used in an I/O operation. The CharBuffer class provides the following four categories of operations upon long buffers:A...
read more
Java
Picked
Java-CharBuffer
Java-NIO package
1
2
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !