public class ConsoleRedirector extends java.lang.Object implements Redirector
| Constructor and Description |
|---|
ConsoleRedirector(AgentServer agent)
Constructor.
|
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, 2017) and others. All Rights Reserved.