public class LocalStreamForwarder extends Object
LocalStreamForwarder forwards an Input- and Outputstream
pair via the secure tunnel to another host (which may or may not be identical
to the remote SSH-2 server).| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the underlying SSH forwarding channel and free up resources.
|
InputStream |
getInputStream() |
OutputStream |
getOutputStream()
Get the OutputStream.
|
public InputStream getInputStream() throws IOException
InputStream object.IOException - the io exceptionpublic OutputStream getOutputStream() throws IOException
flush method of the
OutputStream. To signal EOF, please use the
close method of the OutputStream.OutputStream object.IOException - the io exceptionpublic void close()
throws IOException
IOException - the io exceptionCopyright © 2018. All rights reserved.