public abstract class JnaNativePty extends Object implements Pty
| Modifier | Constructor and Description |
|---|---|
protected |
JnaNativePty(int master,
FileDescriptor masterFD,
int slave,
FileDescriptor slaveFD,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static JnaNativePty |
current() |
int |
getMaster() |
FileDescriptor |
getMasterFD() |
InputStream |
getMasterInput() |
OutputStream |
getMasterOutput() |
String |
getName() |
int |
getSlave() |
FileDescriptor |
getSlaveFD() |
InputStream |
getSlaveInput() |
OutputStream |
getSlaveOutput() |
protected static FileDescriptor |
newDescriptor(int fd) |
static JnaNativePty |
open(Attributes attr,
Size size) |
String |
toString() |
protected JnaNativePty(int master,
FileDescriptor masterFD,
int slave,
FileDescriptor slaveFD,
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 String getName()
public FileDescriptor getMasterFD()
public FileDescriptor getSlaveFD()
public InputStream getMasterInput()
getMasterInput in interface Ptypublic OutputStream getMasterOutput()
getMasterOutput in interface Ptypublic InputStream getSlaveInput()
getSlaveInput in interface Ptypublic OutputStream getSlaveOutput()
getSlaveOutput in interface Ptyprotected static FileDescriptor newDescriptor(int fd)
Copyright © 2020. All rights reserved.