T
- The type of the Appendable
wrapped by this AppendableOutputStream.public class AppendableOutputStream<T extends Appendable> extends OutputStream
Appendable
Object.
For example, can be used with any Writer
or a StringBuilder
or StringBuffer
.
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.
|
close, flush, write, write
public AppendableOutputStream(T appendable)
appendable
- the appendable to write topublic void write(int b) throws IOException
write
in class OutputStream
b
- the character to writeIOException
- upon errorpublic T getAppendable()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics