Package com.deviceatlas
Class BaseDeviceAtlasApi
java.lang.Object
com.deviceatlas.BaseDeviceAtlasApi
- All Implemented Interfaces:
DeviceAtlasApi
- Direct Known Subclasses:
CarrierApi,DeviceApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddownloadAndLoadDataFile(DataFile dataFile) Load the DeviceAtlas data file data from a URL.voiddownloadAndLoadDataFile(String dataFileDownloadUrl) Load the DeviceAtlas data file from a URL.longbooleanvoidMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.deviceatlas.DeviceAtlasApi
getDeviceAtlasApiVersion, loadDataFromFile
-
Constructor Details
-
BaseDeviceAtlasApi
public BaseDeviceAtlasApi()
-
-
Method Details
-
downloadAndLoadDataFile
Load the DeviceAtlas data file data from a URL.- Specified by:
downloadAndLoadDataFilein interfaceDeviceAtlasApi- Parameters:
dataFile- Data file configuration- Throws:
DataLoadingException- when there is a problem downloading or loading the data file.
-
downloadAndLoadDataFile
Load the DeviceAtlas data file from a URL.- Specified by:
downloadAndLoadDataFilein interfaceDeviceAtlasApi- Parameters:
dataFileDownloadUrl- The URL to download the data file from.- Throws:
DataLoadingException- when there is a problem downloading or loading the data file.
-
resetDetectionLookupCount
public void resetDetectionLookupCount()- Specified by:
resetDetectionLookupCountin interfaceDeviceAtlasApi
-
getDetectionLookupCount
public long getDetectionLookupCount()- Specified by:
getDetectionLookupCountin interfaceDeviceAtlasApi
-
isDataFileReload
public boolean isDataFileReload()- Specified by:
isDataFileReloadin interfaceDeviceAtlasApi
-