Class MicLookup
java.lang.Object
com.apptasticsoftware.mic.MicLookup
Class for doing Market Identifier Codes (MIC) lookup.
-
Method Summary
Modifier and TypeMethodDescriptiongetAll()Get all known MIC entries.static MicLookupGet instance for doing MIC lookups.static MicLookupgetInstance(boolean download) Get instance for doing MIC lookups.Get MIC entry by mic code.getMicByCountryCode(String countryCode) Get all MIC entries for a give country code.getMicByOperationalMic(String operationalMic) Get all MIC entries for a give operational MIC.booleanCheck if a list of the latest mic was downloaded.intsize()Number of MICs.
-
Method Details
-
getInstance
Get instance for doing MIC lookups. It will try and download a list of the latest MICs. If download fails an offline list of MICs will be used.- Returns:
- instance
-
getInstance
Get instance for doing MIC lookups.- Parameters:
download- - if true the latest list of MICs will be downloaded. Otherwise, an offline list is used- Returns:
- instance
- Throws:
IOException- exception
-
isDownloaded
public boolean isDownloaded()Check if a list of the latest mic was downloaded.- Returns:
- true if download the latest MICs otherwise false
-
size
public int size()Number of MICs.- Returns:
- size
-
getMic
-
getMicByOperationalMic
-
getMicByCountryCode
-
getAll
-