Package com.storedobject.common
Class InvertedOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.storedobject.common.InvertedOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Create an
OutputStream
such that whatever is written to it will appear in an associated
InputStream
! Beware: The associated InputStream
should be practically read from
a different thread.- Author:
- Syam
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterOutputStream
flush, write, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
InvertedOutputStream
public InvertedOutputStream()Constructor.
-
-
Method Details
-
getInputStream
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterOutputStream
- Throws:
IOException
-