public class SocketRedirector extends java.lang.Object implements Redirector
| Constructor and Description |
|---|
SocketRedirector(AgentServer agentServer,
int port)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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 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, 2021) and others. All Rights Reserved.