1 16 package org.apache.commons.net; 17 18 import java.io.IOException ; 19 import java.io.InputStream ; 20 21 47 48 public final class WhoisClient extends FingerClient 49 { 50 53 public static final String DEFAULT_HOST = "whois.internic.net"; 54 55 58 public static final int DEFAULT_PORT = 43; 59 60 61 65 public WhoisClient() 66 { 67 setDefaultPort(DEFAULT_PORT); 68 } 69 70 80 public String query(String handle) throws IOException  81 { 82 return query(false, handle); 83 } 84 85 86 99 public InputStream getInputStream(String handle) throws IOException  100 { 101 return getInputStream(false, handle); 102 } 103 104 } 105 106 | Popular Tags |