public class AppendableOutputStream<T extends Appendable> extends OutputStream
Appendable
Object.
For example, can be used with any Writer or a StringBuilder
or StringBuffer.
Appendable| 构造器和说明 |
|---|
AppendableOutputStream(T appendable)
Construct a new instance with the specified appendable.
|
| 限定符和类型 | 方法和说明 |
|---|---|
T |
getAppendable()
Return the target appendable.
|
void |
write(int b)
Write a character to the underlying appendable.
|
close, flush, write, writepublic AppendableOutputStream(T appendable)
appendable - the appendable to write topublic void write(int b)
throws IOException
write 在类中 OutputStreamb - the character to writeIOException - upon errorpublic T getAppendable()