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.IOExceptionpublic OutputStream getOutputStream() throws IOException
flush method of the
OutputStream. To signal EOF, please use the
close method of the OutputStream.OutputStream object.IOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2014. All rights reserved.