Class GpxLikeImporter<T extends IGpxReader>

    • Constructor Detail

      • GpxLikeImporter

        protected GpxLikeImporter​(ExtensionFileFilter filter,
                                  java.lang.Class<T> klass)
        Constructs a new GpxLikeImporter.
        Parameters:
        filter - The extension file filter
        klass - type class
    • Method Detail

      • importData

        public final void importData​(java.io.File file,
                                     ProgressMonitor progressMonitor)
                              throws java.io.IOException
        Description copied from class: FileImporter
        Needs to be implemented if isBatchImporter() returns false.
        Overrides:
        importData in class FileImporter
        Parameters:
        file - file to import
        progressMonitor - progress monitor
        Throws:
        java.io.IOException - if any I/O error occurs
      • showInfobox

        protected final void showInfobox​(boolean success,
                                         T r)
      • appendInfoboxContent

        protected void appendInfoboxContent​(java.lang.StringBuilder msg,
                                            boolean success,
                                            T r)
      • buildAndParse

        protected static final <T extends IGpxReader> T buildAndParse​(java.io.InputStream fis,
                                                                      java.lang.Class<T> klass)
                                                               throws java.io.IOException
        Throws:
        java.io.IOException