public final class NpdMoveableFacilityReader extends NpdReader<NpdMoveableFacility>
This class is thread-safe.
Constructor and Description |
---|
NpdMoveableFacilityReader(String url)
Create a reader for NPD moveable facilities.
|
Modifier and Type | Method and Description |
---|---|
static List<NpdMoveableFacility> |
readAll()
Read all NPD moveable facilities.
|
public NpdMoveableFacilityReader(String url)
url
- Location of file to read. Non-null.IllegalArgumentException
- If url is null.public static List<NpdMoveableFacility> readAll() throws IOException
This is a convenient alternative to the more flexible and generic approach where the URL location of the data is provided by the client:
NpdMoveableFacilityReader reader = new NpdMoveableFacilityReader(url); List<NpdMoveableFacility> moveableFacilities = reader.read();
IOException
- If the read operation fail for some reason.Copyright © 2018 Petroware AS - https://petroware.no