public class AppendableOutputStream<T extends java.lang.Appendable>
extends java.io.OutputStream
Appendable
Object.
For example, can be used with any Writer or a StringBuilder
or StringBuffer.
Appendable| Modifier and Type | Field and Description |
|---|---|
private T |
appendable |
| Constructor and Description |
|---|
AppendableOutputStream(T appendable)
Construct a new instance with the specified appendable.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getAppendable()
Return the target appendable.
|
void |
write(int b)
Write a character to the underlying appendable.
|
private final T extends java.lang.Appendable appendable
public AppendableOutputStream(T appendable)
appendable - the appendable to write topublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamb - the character to writejava.io.IOException - upon errorpublic T getAppendable()
Copyright (c) 2002-2016 Apache Software Foundation