Package org.jline.terminal.impl
Class AbstractPty
- java.lang.Object
-
- org.jline.terminal.impl.AbstractPty
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,Pty
- Direct Known Subclasses:
ExecPty,JansiNativePty,JnaNativePty
public abstract class AbstractPty extends java.lang.Object implements Pty
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classAbstractPty.PtyInputStream
-
Field Summary
Fields Modifier and Type Field Description private Attributescurrent
-
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 java.io.InputStreamdoGetSlaveInput()protected abstract voiddoSetAttr(Attributes attr)java.io.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
-
-
-
-
Field Detail
-
current
private Attributes current
-
-
Method Detail
-
setAttr
public void setAttr(Attributes attr) throws java.io.IOException
-
getSlaveInput
public java.io.InputStream getSlaveInput() throws java.io.IOException- Specified by:
getSlaveInputin interfacePty- Throws:
java.io.IOException
-
doSetAttr
protected abstract void doSetAttr(Attributes attr) throws java.io.IOException
- Throws:
java.io.IOException
-
doGetSlaveInput
protected abstract java.io.InputStream doGetSlaveInput() throws java.io.IOException- Throws:
java.io.IOException
-
checkInterrupted
protected void checkInterrupted() throws java.io.InterruptedIOException- Throws:
java.io.InterruptedIOException
-
-