Package com.logicaldoc.util.io
Class StringOutputStream
java.lang.Object
java.io.OutputStream
com.logicaldoc.util.io.StringOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
An output stram that writes into a string
- Since:
- 8.6.1
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
StringOutputStream
public StringOutputStream() -
StringOutputStream
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(byte b) -
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
getData
-