public final class NpdDiscoveryReader extends NpdReader<NpdDiscovery>
This class is thread-safe.
Constructor and Description |
---|
NpdDiscoveryReader(String url)
Create a reader for NPD discoveries.
|
Modifier and Type | Method and Description |
---|---|
static List<NpdDiscovery> |
readAll()
Read all NPD discoveries.
|
public NpdDiscoveryReader(String url)
url
- Location of file to read. Non-null.IllegalArgumentException
- If url is null.public static List<NpdDiscovery> 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:
NpdDiscoveryReader reader = new NpdDiscoveryReader(url); List<NpdDiscovery> discoveries = reader.read();
IOException
- If the read operation fail for some reason.Copyright © 2018 Petroware AS - https://petroware.no