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