Interface MIDataSource

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      This method close the file data source and all opened streams and readers
      void initialiseContext​(Map<String,​Object> options)
      Initialise the context of the MIDataSource given a map of options
      void reset()
      This method will reset the data sources from all loaded options.
    • Method Detail

      • initialiseContext

        void initialiseContext​(Map<String,​Object> options)
        Initialise the context of the MIDataSource given a map of options
        Parameters:
        options - : the options provided by the user
      • close

        void close()
            throws MIIOException
        This method close the file data source and all opened streams and readers
        Throws:
        MIIOException - if the dataSource cannot be closed
      • reset

        void reset()
            throws MIIOException
        This method will reset the data sources from all loaded options. The data source will be back to what is was before the initialiseContext was called. To re-use the data source after calling the reset() method, the data source needs to be re-initialised with initialiseContext. Any provided inputStream or reader will not be closed and will have to be closed separately.
        Throws:
        MIIOException - if the dataSource cannot be reset