Package org.apache.commons.io.output
Class AppendableOutputStream<T extends Appendable>
java.lang.Object
java.io.OutputStream
org.apache.commons.io.output.AppendableOutputStream<T>
- Type Parameters:
- T- The type of the- Appendablewrapped by this AppendableOutputStream.
- All Implemented Interfaces:
- Closeable,- Flushable,- AutoCloseable
OutputStream implementation that writes the data to an 
Appendable
 Object.
 
 For example, can be used with any Writer or a StringBuilder
 or StringBuffer.
 
- Since:
- 2.5
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionAppendableOutputStream(T appendable) Constructs a new instance with the specified appendable.
- 
Method SummaryModifier and TypeMethodDescriptionGets the target appendable.voidwrite(int b) Writes a character to the underlying appendable.Methods inherited from class java.io.OutputStreamclose, flush, write, write
- 
Constructor Details- 
AppendableOutputStreamConstructs a new instance with the specified appendable.- Parameters:
- appendable- the appendable to write to
 
 
- 
- 
Method Details- 
getAppendableGets the target appendable.- Returns:
- the target appendable
 
- 
writeWrites a character to the underlying appendable.- Specified by:
- writein class- OutputStream
- Parameters:
- b- the character to write
- Throws:
- IOException- upon error
 
 
-