public final class LocationDataReader extends Object
OpenLR is a trade mark of TomTom International B.V.
email: software@openlr.org
| Modifier and Type | Method and Description |
|---|---|
static LocationData |
loadLocationData(BufferedReader reader,
MapDatabase mdb)
Load location data from a reader.
|
static LocationData |
loadLocationData(File dataFile,
MapDatabase mdb)
Load location data.
|
static void |
resolveDataLine(String line,
MapDatabase mdb,
LocationData locData)
Resolve data line.
|
public static LocationData loadLocationData(File dataFile, MapDatabase mdb) throws IOException
LocationDataExceptions that are possible during processing each
location entry (= each line) of the given file and increases the error
counter of the result object instead.dataFile - the data file, must not be nullmdb - the mdb, must not be nullLocationData which can be empty if
no locations could be found in the fileIOException - if an error occurred reading the filepublic static LocationData loadLocationData(BufferedReader reader, MapDatabase mdb) throws IOException
LocationDataExceptions that are possible during processing each
location entry (= each line) of the given file and increases the error
counter of the result object instead.reader - the reader that provides the location datamdb - the mdb, must not be nullLocationData which can be empty if
no locations could be found in the fileIOException - if an error occurred reading the readerpublic static void resolveDataLine(String line, MapDatabase mdb, LocationData locData) throws LocationDataException
line - the linemdb - the mdblocData - the loc dataLocationDataException - the location data exceptionCopyright © 2019 TomTom International B.V.. All rights reserved.