Closeable
, AutoCloseable
, Pty
FreeBsdNativePty
, LinuxNativePty
, OsXNativePty
, SolarisNativePty
public abstract class JansiNativePty extends AbstractPty implements Pty
Constructor | Description |
---|---|
JansiNativePty(int master,
FileDescriptor masterFD,
int slave,
FileDescriptor slaveFD,
int slaveOut,
FileDescriptor slaveOutFD,
String name) |
|
JansiNativePty(int master,
FileDescriptor masterFD,
int slave,
FileDescriptor slaveFD,
String name) |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
protected InputStream |
doGetSlaveInput() |
|
protected void |
doSetAttr(Attributes attr) |
|
Attributes |
getAttr() |
|
int |
getMaster() |
|
FileDescriptor |
getMasterFD() |
|
InputStream |
getMasterInput() |
|
OutputStream |
getMasterOutput() |
|
String |
getName() |
|
Size |
getSize() |
|
int |
getSlave() |
|
FileDescriptor |
getSlaveFD() |
|
int |
getSlaveOut() |
|
FileDescriptor |
getSlaveOutFD() |
|
OutputStream |
getSlaveOutput() |
|
protected static FileDescriptor |
newDescriptor(int fd) |
|
void |
setSize(Size size) |
|
protected abstract Attributes |
toAttributes(org.fusesource.jansi.internal.CLibrary.Termios tios) |
|
String |
toString() |
|
protected abstract org.fusesource.jansi.internal.CLibrary.Termios |
toTermios(Attributes t) |
|
protected static String |
ttyname() |
checkInterrupted, getSlaveInput, setAttr
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSlaveInput, setAttr
public JansiNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, String name)
public JansiNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, int slaveOut, FileDescriptor slaveOutFD, String name)
protected static String ttyname() throws IOException
IOException
public void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
public int getMaster()
public int getSlave()
public int getSlaveOut()
public String getName()
public FileDescriptor getMasterFD()
public FileDescriptor getSlaveFD()
public FileDescriptor getSlaveOutFD()
public InputStream getMasterInput()
getMasterInput
in interface Pty
public OutputStream getMasterOutput()
getMasterOutput
in interface Pty
protected InputStream doGetSlaveInput()
doGetSlaveInput
in class AbstractPty
public OutputStream getSlaveOutput()
getSlaveOutput
in interface Pty
public Attributes getAttr() throws IOException
getAttr
in interface Pty
IOException
protected void doSetAttr(Attributes attr) throws IOException
doSetAttr
in class AbstractPty
IOException
public Size getSize() throws IOException
getSize
in interface Pty
IOException
public void setSize(Size size) throws IOException
setSize
in interface Pty
IOException
protected abstract org.fusesource.jansi.internal.CLibrary.Termios toTermios(Attributes t)
protected abstract Attributes toAttributes(org.fusesource.jansi.internal.CLibrary.Termios tios)
protected static FileDescriptor newDescriptor(int fd)
Copyright © 2020. All rights reserved.