cz.mallat.uasparser
Class CachingOnlineUpdateUASparser

java.lang.Object
  extended by cz.mallat.uasparser.UASparser
      extended by cz.mallat.uasparser.OnlineUpdateUASparser
          extended by cz.mallat.uasparser.CachingOnlineUpdateUASparser

public class CachingOnlineUpdateUASparser
extends OnlineUpdateUASparser

Adds a cache to the OnlineUpdateUAParser

Author:
oli

Field Summary
 
Fields inherited from class cz.mallat.uasparser.OnlineUpdateUASparser
currentVersion, DATA_RETRIVE_URL, lastUpdateCheck, UPDATE_INTERVAL, VERSION_CHECK_URL
 
Constructor Summary
CachingOnlineUpdateUASparser()
          The cache files are put into the java tmp directory
CachingOnlineUpdateUASparser(String cacheDir)
          The cache files are put into the cacheDir
 
Method Summary
protected  void checkDataMaps()
          This implementation uses a local properties file to keep the lastUpdate time and the local data file version
 
Methods inherited from class cz.mallat.uasparser.OnlineUpdateUASparser
getVersionFromServer
 
Methods inherited from class cz.mallat.uasparser.UASparser
createInternalDataStructre, loadDataFromFile, loadDataFromFile, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingOnlineUpdateUASparser

public CachingOnlineUpdateUASparser()
                             throws IOException
The cache files are put into the java tmp directory

Throws:
IOException

CachingOnlineUpdateUASparser

public CachingOnlineUpdateUASparser(String cacheDir)
                             throws IOException
The cache files are put into the cacheDir

Parameters:
cacheDir -
Throws:
IOException
Method Detail

checkDataMaps

protected void checkDataMaps()
                      throws IOException
This implementation uses a local properties file to keep the lastUpdate time and the local data file version

Overrides:
checkDataMaps in class OnlineUpdateUASparser
Throws:
IOException


Copyright © 2011. All Rights Reserved.