| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final InputStream | |
| private final NonBlockingInputStream | |
| private Thread | |
| private final Object | |
| private final InputStream | |
| private final OutputStream | |
| private final OutputStream | |
| private final OutputStream | |
| private Thread | |
| private boolean | |
| private final NonBlockingReader | |
| private final PrintWriter |
| Access | Constructor and Description |
|---|---|
| public | PosixPtyTerminal(String name, String type, Pty pty, InputStream in, OutputStream out, Charset encoding)
|
| public | PosixPtyTerminal(String name, String type, Pty pty, InputStream in, OutputStream out, Charset encoding, Terminal.
|
| public | PosixPtyTerminal(String name, String type, Pty pty, InputStream in, OutputStream out, Charset encoding, Terminal.
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| protected void | |
| public InputStream | input()
Implements jdk. Retrieve the input stream for this terminal. |
| public OutputStream | output()
Implements jdk. Retrieve the output stream for this terminal. |
| public void | pause()
Overrides jdk. Implements jdk. Stop reading the input stream. |
| public void | pause(boolean wait)
Overrides jdk. Implements jdk. Stop reading the input stream and optionally wait for the underlying threads to finish. |
| public boolean | paused()
Overrides jdk. Implements jdk. Check whether the terminal is currently reading the input stream or not. |
| private void | |
| private void | |
| public NonBlockingReader | reader()
Implements jdk. Retrieve the |
| public void | resume()
Overrides jdk. Implements jdk. Resume reading the input stream. |
| public PrintWriter | writer()
Implements jdk. Retrieve the |
| in | back to summary |
|---|---|
| private final InputStream in | |
| input | back to summary |
|---|---|
| private final NonBlockingInputStream input | |
| inputPumpThread | back to summary |
|---|---|
| private Thread inputPumpThread | |
| lock | back to summary |
|---|---|
| private final Object lock | |
| masterInput | back to summary |
|---|---|
| private final InputStream masterInput | |
| masterOutput | back to summary |
|---|---|
| private final OutputStream masterOutput | |
| out | back to summary |
|---|---|
| private final OutputStream out | |
| output | back to summary |
|---|---|
| private final OutputStream output | |
| outputPumpThread | back to summary |
|---|---|
| private Thread outputPumpThread | |
| paused | back to summary |
|---|---|
| private boolean paused | |
| reader | back to summary |
|---|---|
| private final NonBlockingReader reader | |
| writer | back to summary |
|---|---|
| private final PrintWriter writer | |
| PosixPtyTerminal | back to summary |
|---|---|
| public PosixPtyTerminal(String name, String type, Pty pty, InputStream in, OutputStream out, Charset encoding) throws IOException | |
| PosixPtyTerminal | back to summary |
|---|---|
| public PosixPtyTerminal(String name, String type, Pty pty, InputStream in, OutputStream out, Charset encoding, Terminal. | |
| PosixPtyTerminal | back to summary |
|---|---|
public PosixPtyTerminal(String name, String type, Pty pty, InputStream in, OutputStream out, Charset encoding, Terminal.
| |
| canPauseResume | back to summary |
|---|---|
| public boolean canPauseResume() Overrides jdk. Implements jdk. Doc from jdk. Whether this terminal supports
| |
| doClose | back to summary |
|---|---|
| protected void doClose() throws IOException Overrides jdk.
| |
| input | back to summary |
|---|---|
| public InputStream input() Implements jdk. Doc from jdk. Retrieve the input stream for this terminal.
In some rare cases, there may be a need to access the
terminal input stream directly. In the usual cases,
use the | |
| output | back to summary |
|---|---|
| public OutputStream output() Implements jdk. Doc from jdk. Retrieve the output stream for this terminal.
In some rare cases, there may be a need to access the
terminal output stream directly. In the usual cases,
use the | |
| pause | back to summary |
|---|---|
| public void pause() Overrides jdk. Implements jdk. Doc from jdk. Stop reading the input stream.
| |
| pause | back to summary |
|---|---|
| public void pause(boolean wait) throws InterruptedException Overrides jdk. Implements jdk. Doc from jdk. Stop reading the input stream and optionally wait for the underlying threads to finish.
| |
| paused | back to summary |
|---|---|
| public boolean paused() Overrides jdk. Implements jdk. Doc from jdk. Check whether the terminal is currently reading the input stream or not. In order to process signal as quickly as possible, the terminal need to read the input stream and buffer it internally so that it can detect specific characters in the input stream (Ctrl+C, Ctrl+D, etc...) and raise the appropriate signals. However, there are some cases where this processing should be disabled, for example when handing the terminal control to a subprocess.
| |
| pumpIn | back to summary |
|---|---|
| private void pumpIn() | |
| pumpOut | back to summary |
|---|---|
| private void pumpOut() | |
| reader | back to summary |
|---|---|
| public NonBlockingReader reader() Implements jdk. Doc from jdk. Retrieve the | |
| resume | back to summary |
|---|---|
| public void resume() Overrides jdk. Implements jdk. Doc from jdk. Resume reading the input stream.
| |
| writer | back to summary |
|---|---|
| public PrintWriter writer() Implements jdk. Doc from jdk. Retrieve the | |
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private final NonBlockingInputStream |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Closes this input stream and releases any system resources associated with the stream. |
| public int | read(long timeout, boolean isPeek)
Implements abstract jdk.
|
| closed | back to summary |
|---|---|
| private volatile boolean closed | |
| in | back to summary |
|---|---|
| private final NonBlockingInputStream in | |
| InputStreamWrapper | back to summary |
|---|---|
| protected InputStreamWrapper(NonBlockingInputStream in) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| read | back to summary |
|---|---|
| public int read(long timeout, boolean isPeek) throws IOException Implements abstract jdk.
| |