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) static interface
AbstractPty.FileDescriptorCreator
(package private) static class
AbstractPty.NativeFileDescriptorCreator
(package private) class
AbstractPty.PtyInputStream
(package private) static class
AbstractPty.ReflectionFileDescriptorCreator
Reflection based file descriptor creator.
-
Field Summary
Fields Modifier and Type Field Description private Attributes
current
private static AbstractPty.FileDescriptorCreator
fileDescriptorCreator
-
Constructor Summary
Constructors Constructor Description AbstractPty()
-
Method Summary
All Methods Static 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()
protected static java.io.FileDescriptor
newDescriptor(int fd)
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
-
fileDescriptorCreator
private static AbstractPty.FileDescriptorCreator fileDescriptorCreator
-
-
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
-
newDescriptor
protected static java.io.FileDescriptor newDescriptor(int fd)
-
-