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