Uses of Class
java.nio.CharBuffer

Packages that use CharBuffer
Package Description
java.io  
java.lang  
java.nio  
java.nio.charset  
org.robovm.rt.bro  
org.robovm.rt.bro.ptr  
  • Uses of CharBuffer in java.io

    Methods in java.io with parameters of type CharBuffer
    Modifier and Type Method Description
    int Reader.read​(CharBuffer target)
    Reads characters and puts them into the target character buffer.
  • Uses of CharBuffer in java.lang

    Methods in java.lang with parameters of type CharBuffer
    Modifier and Type Method Description
    int Readable.read​(CharBuffer cb)
    Reads characters into the specified CharBuffer.
  • Uses of CharBuffer in java.nio

    Methods in java.nio that return CharBuffer
    Modifier and Type Method Description
    static CharBuffer CharBuffer.allocate​(int capacity)
    Creates a char buffer based on a newly allocated char array.
    CharBuffer CharBuffer.append​(char c)
    Writes the given char to the current position and increases the position by 1.
    CharBuffer CharBuffer.append​(CharSequence csq)
    Writes all chars of the given character sequence csq to the current position of this buffer, and increases the position by the length of the csq.
    CharBuffer CharBuffer.append​(CharSequence csq, int start, int end)
    Writes chars of the given CharSequence to the current position of this buffer, and increases the position by the number of chars written.
    abstract CharBuffer ByteBuffer.asCharBuffer()
    Returns a char buffer which is based on the remaining content of this byte buffer.
    abstract CharBuffer CharBuffer.asReadOnlyBuffer()
    Returns a read-only buffer that shares its content with this buffer.
    abstract CharBuffer CharBuffer.compact()
    Compacts this char buffer.
    abstract CharBuffer CharBuffer.duplicate()
    Returns a duplicated buffer that shares its content with this buffer.
    CharBuffer CharBuffer.get​(char[] dst)
    Reads chars from the current position into the specified char array and increases the position by the number of chars read.
    CharBuffer CharBuffer.get​(char[] dst, int dstOffset, int charCount)
    Reads chars from the current position into the specified char array, starting from the specified offset, and increases the position by the number of chars read.
    abstract CharBuffer CharBuffer.put​(char c)
    Writes the given char to the current position and increases the position by 1.
    CharBuffer CharBuffer.put​(char[] src)
    Writes chars from the given char array to the current position and increases the position by the number of chars written.
    CharBuffer CharBuffer.put​(char[] src, int srcOffset, int charCount)
    Writes chars from the given char array, starting from the specified offset, to the current position and increases the position by the number of chars written.
    abstract CharBuffer CharBuffer.put​(int index, char c)
    Writes a char to the specified index of this buffer; the position is not changed.
    CharBuffer CharBuffer.put​(String str)
    Writes all chars of the given string to the current position of this buffer, and increases the position by the length of string.
    CharBuffer CharBuffer.put​(String str, int start, int end)
    Writes chars of the given string to the current position of this buffer, and increases the position by the number of chars written.
    CharBuffer CharBuffer.put​(CharBuffer src)
    Writes all the remaining chars of the src char buffer to this buffer's current position, and increases both buffers' position by the number of chars copied.
    abstract CharBuffer CharBuffer.slice()
    Returns a sliced buffer that shares its content with this buffer.
    abstract CharBuffer CharBuffer.subSequence​(int start, int end)
    Returns a new char buffer representing a sub-sequence of this buffer's current remaining content.
    static CharBuffer CharBuffer.wrap​(char[] array)
    Creates a new char buffer by wrapping the given char array.
    static CharBuffer CharBuffer.wrap​(char[] array, int start, int charCount)
    Creates a new char buffer by wrapping the given char array.
    static CharBuffer CharBuffer.wrap​(CharSequence chseq)
    Creates a new char buffer by wrapping the given char sequence.
    static CharBuffer CharBuffer.wrap​(CharSequence cs, int start, int end)
    Creates a new char buffer by wrapping the given char sequence.
    Methods in java.nio with parameters of type CharBuffer
    Modifier and Type Method Description
    int CharBuffer.compareTo​(CharBuffer otherBuffer)
    Compare the remaining chars of this buffer to another char buffer's remaining chars.
    CharBuffer CharBuffer.put​(CharBuffer src)
    Writes all the remaining chars of the src char buffer to this buffer's current position, and increases both buffers' position by the number of chars copied.
    int CharBuffer.read​(CharBuffer target)
    Reads characters from this buffer and puts them into target.
  • Uses of CharBuffer in java.nio.charset

    Methods in java.nio.charset that return CharBuffer
    Modifier and Type Method Description
    CharBuffer Charset.decode​(ByteBuffer buffer)
    Returns a new CharBuffer containing the characters decoded from buffer.
    CharBuffer CharsetDecoder.decode​(ByteBuffer in)
    This is a facade method for the decoding operation.
    Methods in java.nio.charset with parameters of type CharBuffer
    Modifier and Type Method Description
    CoderResult CharsetDecoder.decode​(ByteBuffer in, CharBuffer out, boolean endOfInput)
    Decodes bytes starting at the current position of the given input buffer, and writes the equivalent character sequence into the given output buffer from its current position.
    protected abstract CoderResult CharsetDecoder.decodeLoop​(ByteBuffer in, CharBuffer out)
    Decodes bytes into characters.
    ByteBuffer Charset.encode​(CharBuffer buffer)
    Returns a new ByteBuffer containing the bytes encoding the characters from buffer.
    ByteBuffer CharsetEncoder.encode​(CharBuffer in)
    This is a facade method for the encoding operation.
    CoderResult CharsetEncoder.encode​(CharBuffer in, ByteBuffer out, boolean endOfInput)
    Encodes characters starting at the current position of the given input buffer, and writes the equivalent byte sequence into the given output buffer from its current position.
    protected abstract CoderResult CharsetEncoder.encodeLoop​(CharBuffer in, ByteBuffer out)
    Encodes characters into bytes.
    CoderResult CharsetDecoder.flush​(CharBuffer out)
    Flushes this decoder.
    protected CoderResult CharsetDecoder.implFlush​(CharBuffer out)
    Flushes this decoder.
  • Uses of CharBuffer in org.robovm.rt.bro

    Methods in org.robovm.rt.bro that return CharBuffer
    Modifier and Type Method Description
    static CharBuffer BufferMarshalers.BufferMarshaler.toCharBuffer​(Class<?> cls, long handle, long flags, int d1)  
    static CharBuffer BufferMarshalers.BufferMarshaler.toCharBuffer​(Class<?> cls, long handle, long flags, int d1, int d2)  
    static CharBuffer BufferMarshalers.BufferMarshaler.toCharBuffer​(Class<?> cls, long handle, long flags, int d1, int d2, int d3)  
    Methods in org.robovm.rt.bro with parameters of type CharBuffer
    Modifier and Type Method Description
    static void BufferMarshalers.BufferMarshaler.toNative​(CharBuffer buffer, long handle, long flags, int d1)  
    static void BufferMarshalers.BufferMarshaler.toNative​(CharBuffer buffer, long handle, long flags, int d1, int d2)  
    static void BufferMarshalers.BufferMarshaler.toNative​(CharBuffer buffer, long handle, long flags, int d1, int d2, int d3)  
  • Uses of CharBuffer in org.robovm.rt.bro.ptr

    Methods in org.robovm.rt.bro.ptr that return CharBuffer
    Modifier and Type Method Description
    CharBuffer CharPtr.asCharBuffer​(int n)
    Returns a CharBuffer which reads and writes to the same memory location pointed to by this CharPtr.