Class CommandOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
ecmwf.common.technical.CommandOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
The Class CommandOutputStream.
-
Field Summary
Fields inherited from class FilterOutputStream
out -
Constructor Summary
ConstructorsConstructorDescriptionCommandOutputStream(OutputStream out, Process process) Instantiates a new command output stream.CommandOutputStream(OutputStream os, String[] command) Instantiates a new command output stream. -
Method Summary
Methods inherited from class OutputStream
nullOutputStream
-
Constructor Details
-
CommandOutputStream
Instantiates a new command output stream.- Parameters:
out- the outprocess- the process- Throws:
IOException
-
CommandOutputStream
Instantiates a new command output stream.- Parameters:
os- the oscommand- the command- Throws:
IOException- Signals that an I/O exception has occurred.
-
-
Method Details
-
close
Close.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterOutputStream- Throws:
IOException- Signals that an I/O exception has occurred.
-
flush
Flush.- Specified by:
flushin interfaceFlushable- Overrides:
flushin classFilterOutputStream- Throws:
IOException- Signals that an I/O exception has occurred.
-
write
Write.- Overrides:
writein classFilterOutputStream- Parameters:
b- the b- Throws:
IOException- Signals that an I/O exception has occurred.
-
write
Write.- Overrides:
writein classFilterOutputStream- Parameters:
b- the boff- the offlen- the len- Throws:
IOException- Signals that an I/O exception has occurred.
-
write
Write.- Overrides:
writein classFilterOutputStream- Parameters:
b- the b- Throws:
IOException- Signals that an I/O exception has occurred.
-