public class SocketRedirector extends java.lang.Object implements Redirector
| Constructor and Description |
|---|
SocketRedirector(AgentServer agentServer,
int port)
Constructor
|
public SocketRedirector(AgentServer agentServer, int port) throws java.lang.Exception
agentServer - the agent we're working forport - the shell portjava.lang.Exceptionpublic 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.lang.Exception
Redirectorstdin in interface Redirectors - the inputjava.lang.Exceptionpublic java.io.PrintStream getOut()
throws java.lang.Exception
RedirectorgetOut in interface Redirectorjava.lang.ExceptionCopyright (c) aQute SARL (2000, 2016) and others. All Rights Reserved.