Class CommandInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
ecmwf.common.technical.CommandInputStream
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorsConstructorDescriptionCommandInputStream
(InputStream in, Process process) Instantiates a new command input stream.CommandInputStream
(InputStream in, String[] cmd) Instantiates a new command input stream. -
Method Summary
Modifier and TypeMethodDescriptionint
Available.void
close()
Close.void
finalize()
Finalize.void
flush()
Flush.void
mark
(int readlimit) Mark.boolean
Mark supported.int
read()
Read.int
read
(byte[] b) Read.int
read
(byte[] b, int off, int len) Read.void
reset()
Reset.long
skip
(long n) Skip.Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
CommandInputStream
Instantiates a new command input stream.- Parameters:
in
- the inprocess
- the process- Throws:
IOException
- Signals that an I/O exception has occurred.
-
CommandInputStream
Instantiates a new command input stream.- Parameters:
in
- the incmd
- the cmd- 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 classFilterInputStream
- Throws:
IOException
-
flush
Flush.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
available
Available.- Overrides:
available
in classFilterInputStream
- Throws:
IOException
-
read
Read.- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
Read.- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
Read.- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
skip
Skip.- Overrides:
skip
in classFilterInputStream
- Throws:
IOException
-
mark
-
markSupported
-
reset
-
finalize
-