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
,JniNativePty
public abstract class AbstractPty extends java.lang.Object implements Pty
-
-
Field Summary
Fields Modifier and Type Field Description protected TerminalProvider
provider
protected SystemStream
systemStream
-
Constructor Summary
Constructors Constructor Description AbstractPty(TerminalProvider provider, SystemStream systemStream)
-
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)
TerminalProvider
getProvider()
java.io.InputStream
getSlaveInput()
SystemStream
getSystemStream()
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
-
provider
protected final TerminalProvider provider
-
systemStream
protected final SystemStream systemStream
-
-
Constructor Detail
-
AbstractPty
public AbstractPty(TerminalProvider provider, SystemStream systemStream)
-
-
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
-
getProvider
public TerminalProvider getProvider()
- Specified by:
getProvider
in interfacePty
-
getSystemStream
public SystemStream getSystemStream()
- Specified by:
getSystemStream
in interfacePty
-
newDescriptor
protected static java.io.FileDescriptor newDescriptor(int fd)
-
-