public class AppendableWriter extends Writer
| Modifier and Type | Field and Description |
|---|---|
protected Appendable |
sb |
| Constructor and Description |
|---|
AppendableWriter(Appendable sb) |
| Modifier and Type | Method and Description |
|---|---|
AppendableWriter |
append(char c) |
AppendableWriter |
append(CharSequence sequence) |
AppendableWriter |
append(CharSequence csq,
int start,
int end) |
void |
close() |
void |
flush() |
static AppendableWriter |
of(Appendable a) |
static AppendableWriter |
of(CharBuffer a) |
static AppendableWriter |
of(StringBuffer a) |
static AppendableWriter |
of(StringBuilder a) |
String |
toString() |
void |
write(char[] bytes,
int offset,
int count) |
void |
write(int c) |
void |
write(String str) |
void |
write(String str,
int off,
int len) |
protected Appendable sb
public AppendableWriter(Appendable sb)
public static AppendableWriter of(StringBuilder a)
public static AppendableWriter of(StringBuffer a)
public static AppendableWriter of(CharBuffer a)
public static AppendableWriter of(Appendable a)
public AppendableWriter append(CharSequence sequence)
append in interface Appendableappend in class Writerpublic AppendableWriter append(CharSequence csq, int start, int end)
append in interface Appendableappend in class Writerpublic AppendableWriter append(char c)
append in interface Appendableappend in class Writerpublic void flush()
Copyright © 2025 vpc open source initiative. All rights reserved.