public EncryptedZIPImportReader(String zipFileName, String password) { try { this.zipFile = new File(zipFileName); if (!zipFile.exists()) { throw new IllegalStateException("File " + zipFileName + " doesn't exists"); } this.objectMapper = JsonSerialization.mapper; AESDecrypter decrypter = new AESDecrypterBC(); this.decrypter = new AesZipFileDecrypter(this.zipFile, decrypter); this.password = password; } catch (IOException ioe) { throw new RuntimeException(ioe); } }
if(isZip) azfd = new AesZipFileDecrypter(file, new AESDecrypterBC()); entry = findZipEntry(".*\\.(?i:gpx)");