Code example for SocketFactory

Methods: createSocket

0
	return new DummySocketFactory(); 
    } 
 
    public Socket createSocket() throws IOException {
	TestResult.success(); 
	return factory.createSocket();
    } 
 
    public Socket createSocket(InetAddress inaddr, int i,
				InetAddress inaddr1, int j) throws IOException {
	TestResult.success(); 
	return factory.createSocket(inaddr, i, inaddr1, j);
    } 
 
    public Socket createSocket(InetAddress inaddr, int i)
				throws IOException { 
	TestResult.success(); 
	return factory.createSocket(inaddr, i);
    } 
 
Contextual code suggestions in your IDE  Get Codota for Java