- java.lang.Object
-
- org.jline.terminal.impl.AbstractPty
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Pty
- Direct Known Subclasses:
ExecPty,JansiNativePty,JnaNativePty
public abstract class AbstractPty extends Object implements Pty
-
-
Constructor Summary
Constructors Constructor Description AbstractPty()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcheckInterrupted()protected abstract InputStreamdoGetSlaveInput()protected abstract voiddoSetAttr(Attributes attr)InputStreamgetSlaveInput()voidsetAttr(Attributes attr)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jline.terminal.spi.Pty
getAttr, getMasterInput, getMasterOutput, getSize, getSlaveOutput, setSize
-
-
-
-
Method Detail
-
setAttr
public void setAttr(Attributes attr) throws IOException
- Specified by:
setAttrin interfacePty- Throws:
IOException
-
getSlaveInput
public InputStream getSlaveInput() throws IOException
- Specified by:
getSlaveInputin interfacePty- Throws:
IOException
-
doSetAttr
protected abstract void doSetAttr(Attributes attr) throws IOException
- Throws:
IOException
-
doGetSlaveInput
protected abstract InputStream doGetSlaveInput() throws IOException
- Throws:
IOException
-
checkInterrupted
protected void checkInterrupted() throws InterruptedIOException- Throws:
InterruptedIOException
-
-