campus.compass
Class GeobytesSource
java.lang.Object
|
+--campus.compass.GeobytesSource
- public class GeobytesSource
- extends java.lang.Object
Given an IP address, determine its geo location using a Web site.
- Version:
- $Id: GeobytesSource.java,v 1.4 2003/09/12 18:09:06 glchen Exp $
- Author:
- Guanling Chen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VISIT_LIMIT
public static final long VISIT_LIMIT
- See Also:
- Constant Field Values
_lastVisited
protected static long _lastVisited
_mapping
protected static java.util.Hashtable _mapping
GeobytesSource
public GeobytesSource()
getLocationByIp
public static Location getLocationByIp(java.lang.String ip)
throws java.lang.Exception
java.lang.Exception
getValueFromLine
private static java.lang.String getValueFromLine(java.lang.String line)