Closeable
, AutoCloseable
, Pty
FreeBsdNativePty
, LinuxNativePty
, OsXNativePty
, SolarisNativePty
public abstract class JnaNativePty extends AbstractPty implements Pty
Modifier | Constructor | 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 | 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, setAttr
protected 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
IOException
public static JnaNativePty open(Attributes attr, Size size) 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
protected static FileDescriptor newDescriptor(int fd)
Copyright © 2020. All rights reserved.