Class DefaultNetexDatasetLoader

java.lang.Object
org.entur.netex.gtfs.export.loader.DefaultNetexDatasetLoader
All Implemented Interfaces:
NetexDatasetLoader

public class DefaultNetexDatasetLoader extends Object implements NetexDatasetLoader
  • Field Details

    • netexParser

      protected final org.entur.netex.NetexParser netexParser
  • Constructor Details

    • DefaultNetexDatasetLoader

      public DefaultNetexDatasetLoader()
  • Method Details

    • load

      public void load(InputStream timetableDataset, NetexDatasetRepository netexDatasetRepository)
      Description copied from interface: NetexDatasetLoader
      Load a NeTEX dataset archive into an in-memory repository
      Specified by:
      load in interface NetexDatasetLoader
      Parameters:
      timetableDataset - a ZIP file containing the NeTEx dataset
      netexDatasetRepository - 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.