Subversion Repositories ZOOMBinding4Java

Compare Revisions

Ignore whitespace Rev 35 → Rev 36

/trunk/src/org/z3950/zoom/ConnectionFactory.java
3,6 → 3,7
import org.z3950.zoom.util.*;
 
public class ConnectionFactory {
 
public static Connection newConnection() throws SystemException {
return (Connection) FactoryFinder.find("org.z3950.zoom.Connection");
}
16,6 → 17,8
 
public static Connection newConnectedConnection(String host, int port) throws SystemException {
Connection conn = newConnection();
conn.setHost(host);
conn.setPort(port);
conn.connect();
return conn;
}