Module org.entur.netex.gtfs.export
Class DefaultNetexDatasetLoader
java.lang.Object
org.entur.netex.gtfs.export.loader.DefaultNetexDatasetLoader
- All Implemented Interfaces:
NetexDatasetLoader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidload(InputStream timetableDataset, NetexDatasetRepository netexDatasetRepository) Load a NeTEX dataset archive into an in-memory repositoryprotected voidparseDataset(ZipInputStream zipInputStream, NetexDatasetRepository netexDatasetRepository) Parse a zip file containing a NeTEx archive.
-
Field Details
-
netexParser
protected final org.entur.netex.NetexParser netexParser
-
-
Constructor Details
-
DefaultNetexDatasetLoader
public DefaultNetexDatasetLoader()
-
-
Method Details
-
load
Description copied from interface:NetexDatasetLoaderLoad a NeTEX dataset archive into an in-memory repository- Specified by:
loadin interfaceNetexDatasetLoader- Parameters:
timetableDataset- a ZIP file containing the NeTEx datasetnetexDatasetRepository- an in-memory repository containing the NeTEx entities.
-
parseDataset
protected void parseDataset(ZipInputStream zipInputStream, NetexDatasetRepository netexDatasetRepository) throws IOException Parse a zip file containing a NeTEx archive.- Parameters:
zipInputStream- a stream on a NeTEx zip archive.netexDatasetRepository- the NeTEx dataset repository to be updated with the content of the NeTEx archive.- Throws:
IOException- if the zip file cannot be read.
-