Class ProcessHandler.Redirect

java.lang.Object
org.graalvm.polyglot.io.ProcessHandler.Redirect
Enclosing interface:
ProcessHandler

public static final class ProcessHandler.Redirect extends Object
Represents a source of subprocess input or a destination of subprocess output.
Since:
19.1.0
  • Field Details

    • PIPE

      public static final ProcessHandler.Redirect PIPE
      Indicates that subprocess I/O will be connected to the current Java process using a pipe.
      Since:
      19.1.0
    • INHERIT

      public static final ProcessHandler.Redirect 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

      public OutputStream getOutputStream()
      Returns the output stream to redirect to.
      Since:
      23.1.0
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Since:
      19.1.0
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Since:
      19.1.0
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      Since:
      19.1.0
    • createRedirectToStream

      public static ProcessHandler.Redirect createRedirectToStream(OutputStream stream)
      Creates a ProcessCommand. Not for direct use.
      Since:
      23.1.0