Package ffx.utilities
Class StringOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
ffx.utilities.StringOutputStream
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
StringOutputStream class.
- Since:
- 1.0
- Author:
- Michael J. Schnieders
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
ConstructorsConstructorDescriptionStringOutputStream(ByteArrayOutputStream byteArrayOutputStream) Constructor for StringOutputStream.StringOutputStream(ByteArrayOutputStream byteArrayOutputStream, Charset charset) Constructor for StringOutputStream. -
Method Summary
Methods inherited from class java.io.PrintStream
append, append, append, charset, checkError, clearError, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, writeBytesMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
StringOutputStream
public StringOutputStream(ByteArrayOutputStream byteArrayOutputStream) throws UnsupportedEncodingException Constructor for StringOutputStream.- Parameters:
byteArrayOutputStream- aByteArrayOutputStreamobject.- Throws:
UnsupportedEncodingException- if any.
-
StringOutputStream
public StringOutputStream(ByteArrayOutputStream byteArrayOutputStream, Charset charset) throws UnsupportedEncodingException Constructor for StringOutputStream.- Parameters:
byteArrayOutputStream- aByteArrayOutputStreamobject.charset- aCharsetobject.- Throws:
UnsupportedEncodingException- if any.
-
-
Method Details
-
close
public void close()close.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classPrintStream
-
toString
toString.
-