org.placelab.mapper
Class JDBMQuickMapLoader
java.lang.Object
org.placelab.mapper.MapLoader
org.placelab.mapper.JDBMQuickMapLoader
- public class JDBMQuickMapLoader
- extends MapLoader
This MapLoader checks the website for an up to date
mapper.db and if a newer one exists, it downloads it
and replaces the current mapper.db with it.
|
Field Summary |
java.lang.String |
md5url
|
java.lang.String |
url
|
|
Method Summary |
boolean |
doIt()
Check the website for whether or not our mapper.db is the latest one
If it is, return true and do nothing
If it isn't, replace it with the current one and return false |
static void |
main(java.lang.String[] args)
Pass in either a URL or a file with a set of known APs as an argument to
this program. |
boolean |
md5matches()
|
static void |
suckFile(java.lang.String fromURL,
java.lang.String toLocation)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
url
public java.lang.String url
md5url
public java.lang.String md5url
JDBMQuickMapLoader
public JDBMQuickMapLoader()
throws java.io.IOException
JDBMQuickMapLoader
public JDBMQuickMapLoader(java.lang.String url,
java.lang.String md5url,
java.lang.String mapperLoc)
throws java.io.IOException
doIt
public boolean doIt()
throws java.io.IOException
- Check the website for whether or not our mapper.db is the latest one
If it is, return true and do nothing
If it isn't, replace it with the current one and return false
- Throws:
java.io.IOException
suckFile
public static void suckFile(java.lang.String fromURL,
java.lang.String toLocation)
throws java.io.IOException
- Throws:
java.io.IOException
md5matches
public boolean md5matches()
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
- Description copied from class:
MapLoader
- Pass in either a URL or a file with a set of known APs as an argument to
this program. The current public map should always be available at
http://data.placelab.org/do-retrieve.php