private static List<File> unzip(File file, NameMapper nameMapper) {
    try {
      File parentFile = file.getParentFile();
      TrackingNameMapper trackingNameMapper = new TrackingNameMapper(parentFile, nameMapper);
      ZipUtil.unpack(file, parentFile, trackingNameMapper);
      return trackingNameMapper.getFiles();
    } catch (Exception ex) {
      throw new UnzipException(ex);
    }
  }
private static List < File > unzip ( File file , NameMapper nameMapper ) { try { File parentFile = file . getParentFile ( ) ; TrackingNameMapper trackingNameMapper = new TrackingNameMapper ( parentFile , nameMapper ) ; ZipUtil . unpack ( file , parentFile , trackingNameMapper ) ; return trackingNameMapper . getFiles ( ) ; } catch ( Exception ex ) { throw new UnzipException ( ex ) ; } }
Unzips a zipfile into the directory it resides in.

@param file the zipfile to unzip
@param nameMapper the {@link NameMapper} to use when unzipping
@return List of Files that got extracted
@throws UnzipException if something went wrong