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