Class ExecPty

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, Pty

    public class ExecPty
    extends AbstractPty
    implements Pty
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • getName

        public java.lang.String getName()
      • getMasterInput

        public java.io.InputStream getMasterInput()
        Specified by:
        getMasterInput in interface Pty
      • getMasterOutput

        public java.io.OutputStream getMasterOutput()
        Specified by:
        getMasterOutput in interface Pty
      • doGetSlaveInput

        protected java.io.InputStream doGetSlaveInput()
                                               throws java.io.IOException
        Specified by:
        doGetSlaveInput in class AbstractPty
        Throws:
        java.io.IOException
      • getSlaveOutput

        public java.io.OutputStream getSlaveOutput()
                                            throws java.io.IOException
        Specified by:
        getSlaveOutput in interface Pty
        Throws:
        java.io.IOException
      • getAttr

        public Attributes getAttr()
                           throws java.io.IOException
        Specified by:
        getAttr in interface Pty
        Throws:
        java.io.IOException
      • doSetAttr

        protected void doSetAttr​(Attributes attr)
                          throws java.io.IOException
        Specified by:
        doSetAttr in class AbstractPty
        Throws:
        java.io.IOException
      • getFlagsToSet

        protected java.util.List<java.lang.String> getFlagsToSet​(Attributes attr,
                                                                 Attributes current)
      • getSize

        public Size getSize()
                     throws java.io.IOException
        Specified by:
        getSize in interface Pty
        Throws:
        java.io.IOException
      • doGetConfig

        protected java.lang.String doGetConfig()
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • doGetAttr

        public static Attributes doGetAttr​(java.lang.String cfg)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • setSize

        public void setSize​(Size size)
                     throws java.io.IOException
        Specified by:
        setSize in interface Pty
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object