Closeable
, AutoCloseable
, Pty
public class ExecPty extends AbstractPty implements Pty
Modifier | Constructor | Description |
---|---|---|
protected |
ExecPty(String name,
boolean system) |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
static Pty |
current() |
|
protected String |
doGetConfig() |
|
protected InputStream |
doGetSlaveInput() |
|
protected void |
doSetAttr(Attributes attr) |
|
Attributes |
getAttr() |
|
protected List<String> |
getFlagsToSet(Attributes attr,
Attributes current) |
|
InputStream |
getMasterInput() |
|
OutputStream |
getMasterOutput() |
|
String |
getName() |
|
Size |
getSize() |
|
OutputStream |
getSlaveOutput() |
|
void |
setSize(Size size) |
|
String |
toString() |
checkInterrupted, getSlaveInput, setAttr
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSlaveInput, setAttr
protected ExecPty(String name, boolean system)
public static Pty current() throws IOException
IOException
public void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
public String getName()
public InputStream getMasterInput()
getMasterInput
in interface Pty
public OutputStream getMasterOutput()
getMasterOutput
in interface Pty
protected InputStream doGetSlaveInput() throws IOException
doGetSlaveInput
in class AbstractPty
IOException
public OutputStream getSlaveOutput() throws IOException
getSlaveOutput
in interface Pty
IOException
public Attributes getAttr() throws IOException
getAttr
in interface Pty
IOException
protected void doSetAttr(Attributes attr) throws IOException
doSetAttr
in class AbstractPty
IOException
protected List<String> getFlagsToSet(Attributes attr, Attributes current)
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 © 2020. All rights reserved.