Uses of Class
java.nio.CharBuffer
Packages that use CharBuffer
Package
Description
Provides for system input and output through data streams,
serialization and the file system.
Provides classes that are fundamental to the design of the Java
programming language.
Defines buffers, which are containers for data, and provides an
overview of the other NIO packages.
Defines charsets, decoders, and encoders, for translating between
bytes and Unicode characters.
-
Uses of CharBuffer in java.io
Methods in java.io with parameters of type CharBufferModifier and TypeMethodDescriptionintReader.read(CharBuffer target) Attempts to read characters into the specified character buffer. -
Uses of CharBuffer in java.lang
Methods in java.lang with parameters of type CharBufferModifier and TypeMethodDescriptionintReadable.read(CharBuffer cb) Attempts to read characters into the specified character buffer. -
Uses of CharBuffer in java.nio
Methods in java.nio that return CharBufferModifier and TypeMethodDescriptionstatic CharBufferCharBuffer.allocate(int capacity) Allocates a new char buffer.CharBuffer.append(char c) Appends the specified char to this buffer (optional operation).CharBuffer.append(CharSequence csq) Appends the specified character sequence to this buffer (optional operation).CharBuffer.append(CharSequence csq, int start, int end) Appends a subsequence of the specified character sequence to this buffer (optional operation).abstract CharBufferByteBuffer.asCharBuffer()Creates a view of this byte buffer as a char buffer.abstract CharBufferCharBuffer.asReadOnlyBuffer()Creates a new, read-only char buffer that shares this buffer's content.final CharBufferCharBuffer.clear()Clears this buffer.abstract CharBufferCharBuffer.compact()Compacts this buffer (optional operation).abstract CharBufferCharBuffer.duplicate()Creates a new char buffer that shares this buffer's content.final CharBufferCharBuffer.flip()Flips this buffer.CharBuffer.get(char[] dst) Relative bulk get method.CharBuffer.get(char[] dst, int offset, int length) Relative bulk get method.CharBuffer.get(int index, char[] dst) Absolute bulk get method.CharBuffer.get(int index, char[] dst, int offset, int length) Absolute bulk get method.final CharBufferCharBuffer.limit(int newLimit) Sets this buffer's limit.final CharBufferCharBuffer.mark()Sets this buffer's mark at its position.final CharBufferCharBuffer.position(int newPosition) Sets this buffer's position.abstract CharBufferCharBuffer.put(char c) Relative put method (optional operation).final CharBufferCharBuffer.put(char[] src) Relative bulk put method (optional operation).CharBuffer.put(char[] src, int offset, int length) Relative bulk put method (optional operation).abstract CharBufferCharBuffer.put(int index, char c) Absolute put method (optional operation).CharBuffer.put(int index, char[] src) Absolute bulk put method (optional operation).CharBuffer.put(int index, char[] src, int offset, int length) Absolute bulk put method (optional operation).CharBuffer.put(int index, CharBuffer src, int offset, int length) Absolute bulk put method (optional operation).final CharBufferRelative bulk put method (optional operation).Relative bulk put method (optional operation).CharBuffer.put(CharBuffer src) Relative bulk put method (optional operation).final CharBufferCharBuffer.reset()Resets this buffer's position to the previously-marked position.final CharBufferCharBuffer.rewind()Rewinds this buffer.abstract CharBufferCharBuffer.slice()Creates a new char buffer whose content is a shared subsequence of this buffer's content.abstract CharBufferCharBuffer.slice(int index, int length) Creates a new char buffer whose content is a shared subsequence of this buffer's content.abstract CharBufferCharBuffer.subSequence(int start, int end) Creates a new character buffer that represents the specified subsequence of this buffer, relative to the current position.static CharBufferCharBuffer.wrap(char[] array) Wraps a char array into a buffer.static CharBufferCharBuffer.wrap(char[] array, int offset, int length) Wraps a char array into a buffer.static CharBufferCharBuffer.wrap(CharSequence csq) Wraps a character sequence into a buffer.static CharBufferCharBuffer.wrap(CharSequence csq, int start, int end) Wraps a character sequence into a buffer.Methods in java.nio with parameters of type CharBufferModifier and TypeMethodDescriptionintCharBuffer.compareTo(CharBuffer that) Compares this buffer to another.intCharBuffer.mismatch(CharBuffer that) Finds and returns the relative index of the first mismatch between this buffer and a given buffer.CharBuffer.put(int index, CharBuffer src, int offset, int length) Absolute bulk put method (optional operation).CharBuffer.put(CharBuffer src) Relative bulk put method (optional operation).intCharBuffer.read(CharBuffer target) Attempts to read characters into the specified character buffer. -
Uses of CharBuffer in java.nio.charset
Methods in java.nio.charset that return CharBufferModifier and TypeMethodDescriptionfinal CharBufferCharset.decode(ByteBuffer bb) Convenience method that decodes bytes in this charset into Unicode characters.final CharBufferCharsetDecoder.decode(ByteBuffer in) Convenience method that decodes the remaining content of a single input byte buffer into a newly-allocated character buffer.Methods in java.nio.charset with parameters of type CharBufferModifier and TypeMethodDescriptionfinal CoderResultCharsetDecoder.decode(ByteBuffer in, CharBuffer out, boolean endOfInput) Decodes as many bytes as possible from the given input buffer, writing the results to the given output buffer.protected abstract CoderResultCharsetDecoder.decodeLoop(ByteBuffer in, CharBuffer out) Decodes one or more bytes into one or more characters.final ByteBufferCharset.encode(CharBuffer cb) Convenience method that encodes Unicode characters into bytes in this charset.final ByteBufferCharsetEncoder.encode(CharBuffer in) Convenience method that encodes the remaining content of a single input character buffer into a newly-allocated byte buffer.final CoderResultCharsetEncoder.encode(CharBuffer in, ByteBuffer out, boolean endOfInput) Encodes as many characters as possible from the given input buffer, writing the results to the given output buffer.protected abstract CoderResultCharsetEncoder.encodeLoop(CharBuffer in, ByteBuffer out) Encodes one or more characters into one or more bytes.final CoderResultCharsetDecoder.flush(CharBuffer out) Flushes this decoder.protected CoderResultCharsetDecoder.implFlush(CharBuffer out) Flushes this decoder.