public void close() throws IOException { // Close the file stream, if any. closeEntry(); }
public boolean createDirectory(DataEntry dataEntry) throws IOException { // Should we close the current file? if (!isFile && currentFile != null) { closeEntry(); } File directory = getFile(dataEntry); if (!directory.exists() && !directory.mkdirs()) { throw new IOException("Can't create directory [" + directory.getPath() + "]"); } return true; }
!currentFile.equals(file)) closeEntry();