public class BindAddressSocketFactory
extends java.lang.Object
implements com.jcraft.jsch.SocketFactory
Constructor and Description |
---|
BindAddressSocketFactory(java.lang.String bindAddress,
java.lang.Long timeout) |
Modifier and Type | Method and Description |
---|---|
java.net.Socket |
createSocket(java.lang.String host,
int port) |
java.io.InputStream |
getInputStream(java.net.Socket socket) |
java.io.OutputStream |
getOutputStream(java.net.Socket socket) |
public BindAddressSocketFactory(java.lang.String bindAddress, java.lang.Long timeout)
public java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException
createSocket
in interface com.jcraft.jsch.SocketFactory
java.io.IOException
public java.io.InputStream getInputStream(java.net.Socket socket) throws java.io.IOException
getInputStream
in interface com.jcraft.jsch.SocketFactory
java.io.IOException
public java.io.OutputStream getOutputStream(java.net.Socket socket) throws java.io.IOException
getOutputStream
in interface com.jcraft.jsch.SocketFactory
java.io.IOException