Package org.graalvm.polyglot.io
Class ProcessHandler.Redirect
java.lang.Object
org.graalvm.polyglot.io.ProcessHandler.Redirect
- Enclosing interface:
ProcessHandler
Represents a source of subprocess input or a destination of subprocess output.
- Since:
- 19.1.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ProcessHandler.Redirect
Indicates that subprocess I/O source or destination will be the same as those of the current process.static final ProcessHandler.Redirect
Indicates that subprocess I/O will be connected to the current Java process using a pipe. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessHandler.Redirect
createRedirectToStream
(OutputStream stream) Creates a ProcessCommand.boolean
Returns the output stream to redirect to.int
hashCode()
toString()
-
Field Details
-
PIPE
Indicates that subprocess I/O will be connected to the current Java process using a pipe.- Since:
- 19.1.0
-
INHERIT
Indicates that subprocess I/O source or destination will be the same as those of the current process.- Since:
- 19.1.0
-
-
Method Details
-
getOutputStream
Returns the output stream to redirect to.- Since:
- 23.1.0
-
toString
-
hashCode
public int hashCode() -
equals
-
createRedirectToStream
Creates a ProcessCommand. Not for direct use.- Since:
- 23.1.0
-