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) |
protected JnaNativePty(int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, String name)
public static JnaNativePty current() throws IOException
IOException
public static JnaNativePty open(Attributes attr, Size size) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public int getMaster()
public int getSlave()
public String getName()
public FileDescriptor getMasterFD()
public FileDescriptor getSlaveFD()
public InputStream getMasterInput()
getMasterInput
in interface Pty
public OutputStream getMasterOutput()
getMasterOutput
in interface Pty
public InputStream getSlaveInput()
getSlaveInput
in interface Pty
public OutputStream getSlaveOutput()
getSlaveOutput
in interface Pty
protected static FileDescriptor newDescriptor(int fd)
Copyright © 2017. All rights reserved.