code: @Override
      public I importFrom(final File file, Filter<ArchivePath> filter) throws ArchiveImportException {
          Validate.notNull(file, "File must be specified");
          if (!file.exists()) {
              throw new IllegalArgumentException("Specified file for import does not exist: " + file);
          }
          if (file.isDirectory()) {
              throw new IllegalArgumentException("Specified file for import is a directory: " + file);
          }
  
          final S archive;
          try {
              archive = this.getInputStreamForFile(file);
          } catch (final IOException e) {
              throw new ArchiveImportException("Could not read archive file " + file, e);
          }
  
          return this.importFrom(archive, filter);
  
      }
docs: {@inheritDoc}
  
  @see org.jboss.shrinkwrap.api.importer.StreamImporter#importFrom(java.io.File, Filter)