public class ConsoleRedirector extends java.lang.Object implements Redirector
| Constructor and Description |
|---|
ConsoleRedirector(AgentServer agent)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Clean up
|
java.io.PrintStream |
getOut()
Get the output stream
|
int |
getPort()
The port (or pseudo port) this one is connected to
|
void |
stdin(java.lang.String s)
Provide input
|
public ConsoleRedirector(AgentServer agent) throws java.io.IOException
agent - the agent we're redirecting forjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic int getPort()
RedirectorgetPort in interface Redirectorpublic void stdin(java.lang.String s)
throws java.io.IOException
Redirectorstdin in interface Redirectors - the inputjava.io.IOExceptionpublic java.io.PrintStream getOut()
RedirectorgetOut in interface RedirectorCopyright (c) aQute SARL (2000, 2021) and others. All Rights Reserved.