Package org.svetovid.io
Class StandardOutputStreamProxy
java.lang.Object
java.io.OutputStream
org.svetovid.io.StandardOutputStreamProxy
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
Instances of this class serve as proxies for the currently set-up standard
output stream (see
System.out). If the standard output stream changes
(through System.setOut(java.io.PrintStream)) instances of this class
will forward the output to the new stream.
All instances of this class are considered equal.
- Author:
- Ivan Pribela
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
StandardOutputStreamProxy
public StandardOutputStreamProxy()
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
toString
-
hashCode
public int hashCode() -
equals
-