JavaTM 2 Platform
Std. Ed. v1.4.2

Uses of Class
java.nio.CharBuffer

Packages that use CharBuffer
java.nio Defines buffers, which are containers for data, and provides an overview of the other NIO packages. 
java.nio.charset Defines charsets, decoders, and encoders, for translating between bytes and Unicode characters. 
 

Uses of CharBuffer in java.nio
 

Methods in java.nio that return CharBuffer
static CharBuffer CharBuffer.allocate(int capacity)
          Allocates a new character buffer.
static CharBuffer CharBuffer.wrap(char[] array, int offset, int length)
          Wraps a character array into a buffer.
static CharBuffer CharBuffer.wrap(char[] array)
          Wraps a character array into a buffer.
static CharBuffer CharBuffer.wrap(CharSequence csq, int start, int end)
          Wraps a character sequence into a buffer.
static CharBuffer CharBuffer.wrap(CharSequence csq)
          Wraps a string into a buffer.
abstract  CharBuffer CharBuffer.slice()
          Creates a new character buffer whose content is a shared subsequence of this buffer's content.
abstract  CharBuffer CharBuffer.duplicate()
          Creates a new character buffer that shares this buffer's content.
abstract  CharBuffer CharBuffer.asReadOnlyBuffer()
          Creates a new, read-only character buffer that shares this buffer's content.
abstract  CharBuffer CharBuffer.put(char c)
          Relative put method  (optional operation).
abstract  CharBuffer CharBuffer.put(int index, char c)
          Absolute put method  (optional operation).
 CharBuffer CharBuffer.get(char[] dst, int offset, int length)
          Relative bulk get method.
 CharBuffer CharBuffer.get(char[] dst)
          Relative bulk get method.
 CharBuffer CharBuffer.put(CharBuffer src)
          Relative bulk put method  (optional operation).
 CharBuffer CharBuffer.put(char[] src, int offset, int length)
          Relative bulk put method  (optional operation).
 CharBuffer CharBuffer.put(char[] src)
          Relative bulk put method  (optional operation).
 CharBuffer CharBuffer.put(String src, int start, int end)
          Relative bulk put method  (optional operation).
 CharBuffer CharBuffer.put(String src)
          Relative bulk put method  (optional operation).
abstract  CharBuffer CharBuffer.compact()
          Compacts this buffer  (optional operation).
abstract  CharBuffer ByteBuffer.asCharBuffer()
          Creates a view of this byte buffer as a char buffer.
 

Methods in java.nio with parameters of type CharBuffer
 CharBuffer CharBuffer.put(CharBuffer src)
          Relative bulk put method  (optional operation).
 

Uses of CharBuffer in java.nio.charset
 

Methods in java.nio.charset that return CharBuffer
 CharBuffer CharsetDecoder.decode(ByteBuffer in)
          Convenience method that decodes the remaining content of a single input byte buffer into a newly-allocated character buffer.
 CharBuffer Charset.decode(ByteBuffer bb)
          Convenience method that decodes bytes in this charset into Unicode characters.
 

Methods in java.nio.charset with parameters of type CharBuffer
 CoderResult CharsetDecoder.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.
 CoderResult CharsetDecoder.flush(CharBuffer out)
          Flushes this decoder.
protected  CoderResult CharsetDecoder.implFlush(CharBuffer out)
          Flushes this decoder.
protected abstract  CoderResult CharsetDecoder.decodeLoop(ByteBuffer in, CharBuffer out)
          Decodes one or more bytes into one or more characters.
 CoderResult CharsetEncoder.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  CoderResult CharsetEncoder.encodeLoop(CharBuffer in, ByteBuffer out)
          Encodes one or more characters into one or more bytes.
 ByteBuffer CharsetEncoder.encode(CharBuffer in)
          Convenience method that encodes the remaining content of a single input character buffer into a newly-allocated byte buffer.
 ByteBuffer Charset.encode(CharBuffer cb)
          Convenience method that encodes Unicode characters into bytes in this charset.
 


JavaTM 2 Platform
Std. Ed. v1.4.2

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 2003, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.