public void parseConnectionInfo(Reader reader) {
		BufferedReader in = new BufferedReader(reader);
		String line = null;
		String host = null;
		String port = null;
		String database = null;
		
		try{
			if(this == DB2){
				while((line = in.readLine())!= null){
					line = line.toUpperCase();
					if(line.indexOf("CATALOG TCPIP") != -1){
						host = line.substring(line.indexOf("REMOTE") + 7, line.indexOf("SERVER") - 1);
						port = line.substring(line.indexOf("SERVER") + 7, line.indexOf("OSTYPE") - 1);
					}else if(line.indexOf(" CATALOG DB") != -1){
						if(host != null){
							database = line.substring(line.indexOf(" CATALOG DB") + 12, line.indexOf(" AT"));
							Catalog catalog = new Catalog(database, host, port);
							_catalogs.put(catalog.toString(), catalog);
						}
					}
				}
			}else if(this == MYSQL){
				Catalog catalog = new Catalog("test", "localhost", "3600");
				_catalogs.put(catalog.toString(), catalog);
			}
		}catch (Exception e) {
		}finally{
			if(in != null){
				try{
					in.close();
				}catch(Exception e){}
			}
		}
	}