Class PersistentPTY


  • public class PersistentPTY
    extends PTY
    A type of PTY that is persistent. This means that closing its streams (e.g., once the connection to the process is lost) will not close the PTY or the streams; instead, they will remain open to be used again by reconnecting to the streams. closeStreams() must be called to properly cleanup the streams once the PersistentPTY is known not be needed anymore.
    Since:
    5.10
    • Constructor Detail

      • PersistentPTY

        public PersistentPTY()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • PersistentPTY

        public PersistentPTY​(PTY.Mode mode)
                      throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • closeStreams

        public void closeStreams()
                          throws java.io.IOException
        This method must be called once the PersistentPTY is no longer needed, so that its streams can be closed.
        Throws:
        java.io.IOException