- 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 void
checkInterrupted()
protected abstract InputStream
doGetSlaveInput()
protected abstract void
doSetAttr(Attributes attr)
InputStream
getSlaveInput()
void
setAttr(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:
setAttr
in interfacePty
- Throws:
IOException
-
getSlaveInput
public InputStream getSlaveInput() throws IOException
- Specified by:
getSlaveInput
in 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
-
-