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) class
AbstractPty.PtyInputStream
-
Field Summary
Fields Modifier and Type Field Description private Attributes
current
-
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 java.io.InputStream
doGetSlaveInput()
protected abstract void
doSetAttr(Attributes attr)
java.io.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
-
-
-
-
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:
getSlaveInput
in 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
-
-