public class CharArr extends Object implements CharSequence, Appendable
| Modifier and Type | Field and Description |
|---|---|
protected char[] |
buf |
protected int |
end |
protected int |
start |
| Constructor and Description |
|---|
CharArr() |
CharArr(char[] arr,
int start,
int end) |
CharArr(int size) |
| Modifier and Type | Method and Description |
|---|---|
Appendable |
append(char c) |
Appendable |
append(CharSequence csq) |
Appendable |
append(CharSequence csq,
int start,
int end) |
int |
capacity()
The capacity of the buffer when empty (getArray().size())
|
char |
charAt(int index) |
void |
close() |
int |
fill() |
void |
flush() |
char[] |
getArray() |
int |
getEnd() |
int |
getStart() |
int |
length() |
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
int |
read(CharBuffer cb) |
void |
reserve(int num) |
void |
reset() |
protected void |
resize(int len) |
void |
set(char[] arr,
int start,
int end) |
void |
setEnd(int end) |
void |
setStart(int start) |
int |
size() |
CharArr |
subSequence(int start,
int end) |
char[] |
toCharArray() |
String |
toString() |
void |
unsafeWrite(char b) |
void |
unsafeWrite(char[] b,
int off,
int len) |
void |
unsafeWrite(int b) |
void |
write(char b) |
void |
write(char[] b) |
void |
write(char[] b,
int off,
int len) |
void |
write(CharArr arr) |
void |
write(int b) |
void |
write(String s) |
void |
write(String s,
int stringOffset,
int len) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchars, codePointspublic CharArr()
public CharArr(int size)
public CharArr(char[] arr,
int start,
int end)
public void setStart(int start)
public void setEnd(int end)
public void set(char[] arr,
int start,
int end)
public char[] getArray()
public int getStart()
public int getEnd()
public int size()
public int length()
length in interface CharSequencepublic int capacity()
public char charAt(int index)
charAt in interface CharSequencepublic CharArr subSequence(int start, int end)
subSequence in interface CharSequencepublic int read()
throws IOException
IOExceptionpublic int read(char[] cbuf,
int off,
int len)
public void unsafeWrite(char b)
public void unsafeWrite(int b)
public void unsafeWrite(char[] b,
int off,
int len)
protected void resize(int len)
public void reserve(int num)
public void write(char b)
public final void write(int b)
public final void write(char[] b)
public void write(char[] b,
int off,
int len)
public final void write(CharArr arr)
public final void write(String s)
public void write(String s, int stringOffset, int len)
public void flush()
public final void reset()
public void close()
public char[] toCharArray()
public String toString()
toString in interface CharSequencetoString in class Objectpublic int read(CharBuffer cb) throws IOException
IOExceptionpublic int fill()
throws IOException
IOExceptionpublic final Appendable append(CharSequence csq) throws IOException
append in interface AppendableIOExceptionpublic Appendable append(CharSequence csq, int start, int end) throws IOException
append in interface AppendableIOExceptionpublic final Appendable append(char c) throws IOException
append in interface AppendableIOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.