Class Importer

    • Constructor Detail

    • Method Detail

      • isImportable

        public static boolean isImportable​(Archive archive)
        Checks if the given archive contains import information.
        Parameters:
        archive - the archive
        Returns:
        true, if archive is importable
      • getTempFile

        public File getTempFile()
      • getRemoteUrl

        public String getRemoteUrl()
      • getSuggestedName

        public String getSuggestedName()
        Suggest a name, in case the user does not provide one
        Returns:
        String
      • createTempDir

        protected File createTempDir()
                              throws ImporterException
        creates a temporary directory, should be cleaned in close.
        Returns:
        the temporary dir
        Throws:
        ImporterException - the importer exception