? AppendableOutputStream<T extends Appendable>
java.lang.Object
java.io.OutputStream
org.apache.commons.io.output.AppendableOutputStream<T>
- ????:
T
- The type of theAppendable
wrapped by this AppendableOutputStream.
- ????????:
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
.
- ???????:
- 2.5
- ????:
-
?????
??? -
????
??????????Return the target appendable.void
write
(int b) Write a character to the underlying appendable.??????? java.io.OutputStream
close, flush, nullOutputStream, write, write
-
???????
-
AppendableOutputStream
Construct a new instance with the specified appendable.- ??:
appendable
- the appendable to write to
-
-
??????
-
write
Write a character to the underlying appendable.- ???:
write
???OutputStream
- ??:
b
- the character to write- ??:
IOException
- upon error
-
getAppendable
Return the target appendable.- ??:
- the target appendable
-