public class ExecPty extends Object implements Pty
Modifier | Constructor and Description |
---|---|
protected |
ExecPty(String name,
boolean system) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static Pty |
current() |
protected String |
doGetConfig() |
Attributes |
getAttr() |
InputStream |
getMasterInput() |
OutputStream |
getMasterOutput() |
String |
getName() |
Size |
getSize() |
InputStream |
getSlaveInput() |
OutputStream |
getSlaveOutput() |
void |
setAttr(Attributes attr) |
void |
setSize(Size size) |
protected ExecPty(String name, boolean system)
public static Pty current() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public String getName()
public InputStream getMasterInput()
getMasterInput
in interface Pty
public OutputStream getMasterOutput()
getMasterOutput
in interface Pty
public InputStream getSlaveInput() throws IOException
getSlaveInput
in interface Pty
IOException
public OutputStream getSlaveOutput() throws IOException
getSlaveOutput
in interface Pty
IOException
public Attributes getAttr() throws IOException
getAttr
in interface Pty
IOException
public void setAttr(Attributes attr) throws IOException
setAttr
in interface Pty
IOException
public Size getSize() throws IOException
getSize
in interface Pty
IOException
protected String doGetConfig() throws IOException
IOException
public void setSize(Size size) throws IOException
setSize
in interface Pty
IOException
Copyright © 2019. All rights reserved.