public abstract class JnaNativePty extends AbstractPty implements Pty
| Modifier | Constructor and Description |
|---|---|
protected |
JnaNativePty(int master,
FileDescriptor masterFD,
int slave,
FileDescriptor slaveFD,
int slaveOut,
FileDescriptor slaveOutFD,
String name) |
protected |
JnaNativePty(int master,
FileDescriptor masterFD,
int slave,
FileDescriptor slaveFD,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static JnaNativePty |
current() |
protected InputStream |
doGetSlaveInput() |
int |
getMaster() |
FileDescriptor |
getMasterFD() |
InputStream |
getMasterInput() |
OutputStream |
getMasterOutput() |
String |
getName() |
int |
getSlave() |
FileDescriptor |
getSlaveFD() |
int |
getSlaveOut() |
FileDescriptor |
getSlaveOutFD() |
OutputStream |
getSlaveOutput() |
protected static FileDescriptor |
newDescriptor(int fd) |
static JnaNativePty |
open(Attributes attr,
Size size) |
String |
toString() |
checkInterrupted, doSetAttr, getSlaveInput, setAttrprotected JnaNativePty(int master,
FileDescriptor masterFD,
int slave,
FileDescriptor slaveFD,
String name)
protected JnaNativePty(int master,
FileDescriptor masterFD,
int slave,
FileDescriptor slaveFD,
int slaveOut,
FileDescriptor slaveOutFD,
String name)
public static JnaNativePty current() throws IOException
IOExceptionpublic static JnaNativePty open(Attributes attr, Size size) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic 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 Ptypublic OutputStream getMasterOutput()
getMasterOutput in interface Ptyprotected InputStream doGetSlaveInput()
doGetSlaveInput in class AbstractPtypublic OutputStream getSlaveOutput()
getSlaveOutput in interface Ptyprotected static FileDescriptor newDescriptor(int fd)
Copyright © 2018. All rights reserved.