Uses of Class
java.nio.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 intReader. read(CharBuffer target)Reads characters and puts them into thetargetcharacter buffer. -
Uses of CharBuffer in java.lang
Methods in java.lang with parameters of type CharBuffer Modifier and Type Method Description intReadable. read(CharBuffer cb)Reads characters into the specifiedCharBuffer. -
Uses of CharBuffer in java.nio
Methods in java.nio that return CharBuffer Modifier and Type Method Description static CharBufferCharBuffer. allocate(int capacity)Creates a char buffer based on a newly allocated char array.CharBufferCharBuffer. append(char c)Writes the given char to the current position and increases the position by 1.CharBufferCharBuffer. append(CharSequence csq)Writes all chars of the given character sequencecsqto the current position of this buffer, and increases the position by the length of the csq.CharBufferCharBuffer. append(CharSequence csq, int start, int end)Writes chars of the givenCharSequenceto the current position of this buffer, and increases the position by the number of chars written.abstract CharBufferByteBuffer. asCharBuffer()Returns a char buffer which is based on the remaining content of this byte buffer.abstract CharBufferCharBuffer. asReadOnlyBuffer()Returns a read-only buffer that shares its content with this buffer.abstract CharBufferCharBuffer. compact()Compacts this char buffer.abstract CharBufferCharBuffer. duplicate()Returns a duplicated buffer that shares its content with this buffer.CharBufferCharBuffer. get(char[] dst)Reads chars from the current position into the specified char array and increases the position by the number of chars read.CharBufferCharBuffer. 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 CharBufferCharBuffer. put(char c)Writes the given char to the current position and increases the position by 1.CharBufferCharBuffer. put(char[] src)Writes chars from the given char array to the current position and increases the position by the number of chars written.CharBufferCharBuffer. 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 CharBufferCharBuffer. put(int index, char c)Writes a char to the specified index of this buffer; the position is not changed.CharBufferCharBuffer. 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.CharBufferCharBuffer. 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.CharBufferCharBuffer. put(CharBuffer src)Writes all the remaining chars of thesrcchar buffer to this buffer's current position, and increases both buffers' position by the number of chars copied.abstract CharBufferCharBuffer. slice()Returns a sliced buffer that shares its content with this buffer.abstract CharBufferCharBuffer. subSequence(int start, int end)Returns a new char buffer representing a sub-sequence of this buffer's current remaining content.static CharBufferCharBuffer. wrap(char[] array)Creates a new char buffer by wrapping the given char array.static CharBufferCharBuffer. wrap(char[] array, int start, int charCount)Creates a new char buffer by wrapping the given char array.static CharBufferCharBuffer. wrap(CharSequence chseq)Creates a new char buffer by wrapping the given char sequence.static CharBufferCharBuffer. 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 intCharBuffer. compareTo(CharBuffer otherBuffer)Compare the remaining chars of this buffer to another char buffer's remaining chars.CharBufferCharBuffer. put(CharBuffer src)Writes all the remaining chars of thesrcchar buffer to this buffer's current position, and increases both buffers' position by the number of chars copied.intCharBuffer. read(CharBuffer target)Reads characters from this buffer and puts them intotarget. -
Uses of CharBuffer in java.nio.charset
Methods in java.nio.charset that return CharBuffer Modifier and Type Method Description CharBufferCharset. decode(ByteBuffer buffer)Returns a newCharBuffercontaining the characters decoded frombuffer.CharBufferCharsetDecoder. 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 CoderResultCharsetDecoder. 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 CoderResultCharsetDecoder. decodeLoop(ByteBuffer in, CharBuffer out)Decodes bytes into characters.ByteBufferCharset. encode(CharBuffer buffer)Returns a newByteBuffercontaining the bytes encoding the characters frombuffer.ByteBufferCharsetEncoder. encode(CharBuffer in)This is a facade method for the encoding operation.CoderResultCharsetEncoder. 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 CoderResultCharsetEncoder. encodeLoop(CharBuffer in, ByteBuffer out)Encodes characters into bytes.CoderResultCharsetDecoder. flush(CharBuffer out)Flushes this decoder.protected CoderResultCharsetDecoder. 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 CharBufferBufferMarshalers.BufferMarshaler. toCharBuffer(Class<?> cls, long handle, long flags, int d1)static CharBufferBufferMarshalers.BufferMarshaler. toCharBuffer(Class<?> cls, long handle, long flags, int d1, int d2)static CharBufferBufferMarshalers.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 voidBufferMarshalers.BufferMarshaler. toNative(CharBuffer buffer, long handle, long flags, int d1)static voidBufferMarshalers.BufferMarshaler. toNative(CharBuffer buffer, long handle, long flags, int d1, int d2)static voidBufferMarshalers.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 CharBufferCharPtr. asCharBuffer(int n)Returns aCharBufferwhich reads and writes to the same memory location pointed to by thisCharPtr.