/** * Create a new instance. * * @param name the name of the source archive * @param inputStream an input stream from the source archive * @param tempDir the temp dir into which zip information is stored * @throws java.io.IOException if an I/O error occurs */ public JavaZipFileSystem(String name, InputStream inputStream, TempDir tempDir) throws IOException { this(tempDir.createFile(name, inputStream), tempDir); }
File getFile(Entry entry) { if (entry.file == null) { try { entry.file = this.tempDir.createFile(entry.archive.getName(), entry.archive.as(ZipExporter.class).exportAsInputStream()); } catch (IOException e) { e.printStackTrace(); } } return entry.file; }
File getFile(Entry entry) { if (entry.file == null) { try { entry.file = this.tempDir.createFile(entry.archive.getName(), entry.archive.as(ZipExporter.class).exportAsInputStream()); } catch (IOException e) { e.printStackTrace(); } } return entry.file; }
File getFile(Entry entry) { if (entry.file == null) { try { entry.file = this.tempDir.createFile(entry.archive.getName(), entry.archive.as(ZipExporter.class).exportAsInputStream()); } catch (IOException e) { e.printStackTrace(); } } return entry.file; }