Package jmri.jmrix
Class ReplaceableOutputStream
java.lang.Object
java.io.OutputStream
jmri.jmrix.ReplaceableOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
An output stream where the stream can be replaced on the fly.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()voidreplaceStream(OutputStream stream) voidwrite(byte[] b) voidwrite(byte[] b, int off, int len) voidwrite(int b) Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
ReplaceableOutputStream
public ReplaceableOutputStream()
-
-
Method Details
-
replaceStream
-
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
-