|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.placelab.mapper.MapLoader
This utility class reloads the persistent Beacon cache from a file or URL. This will completely erase the existing AP cache and then load the new access points.
| Field Summary | |
protected Mapper |
mapper
|
| Constructor Summary | |
MapLoader()
Creates a new map loader that will use the default database name |
|
MapLoader(Mapper m)
Creates a new map loader that will name its database dbName. |
|
| Method Summary | |
void |
createNewMap()
Deletes all the known Beacons and returns how many elements were in the map. |
Mapper |
getMapper()
|
int |
loadMap(java.io.InputStream is)
Load up a new map from the given inputstream. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Mapper mapper
| Constructor Detail |
public MapLoader(Mapper m)
public MapLoader()
throws java.io.IOException
| Method Detail |
public Mapper getMapper()
public static void main(java.lang.String[] args)
public void createNewMap()
public int loadMap(java.io.InputStream is)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||