Class CommandOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
ecmwf.common.technical.CommandOutputStream
-
Field Summary
Fields inherited from class java.io.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 java.io.OutputStream
nullOutputStream
-
Constructor Details
-
CommandOutputStream
Instantiates a new command output stream.- Parameters:
out
- the outprocess
- the process
-
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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterOutputStream
- Throws:
IOException
-
flush
Flush.- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classFilterOutputStream
- Throws:
IOException
-
write
Write.- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
write
Write.- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
write
Write.- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
finalize
-