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
ConstructorDescriptionStringOutputStream
(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, writeBytes
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
StringOutputStream
public StringOutputStream(ByteArrayOutputStream byteArrayOutputStream) throws UnsupportedEncodingException Constructor for StringOutputStream.- Parameters:
byteArrayOutputStream
- aByteArrayOutputStream
object.- Throws:
UnsupportedEncodingException
- if any.
-
StringOutputStream
public StringOutputStream(ByteArrayOutputStream byteArrayOutputStream, Charset charset) throws UnsupportedEncodingException Constructor for StringOutputStream.- Parameters:
byteArrayOutputStream
- aByteArrayOutputStream
object.charset
- aCharset
object.- Throws:
UnsupportedEncodingException
- if any.
-
-
Method Details
-
close
public void close()close.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classPrintStream
-
toString
toString.
-