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
-
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
StandardOutputStreamProxy
public StandardOutputStreamProxy()
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
toString
-
hashCode
public int hashCode() -
equals
-