< prev index next >

src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipFileSystem.java

Print this page

        

*** 890,904 **** --- 890,911 ---- e.flag |= FLAG_USE_UTF8; } @Override public void close() throws IOException { + super.beginWrite(); + try { + if (!isOpen()) + return; // will update the entry try (OutputStream os = getOutputStream(e)) { os.write(toByteArray()); } super.close(); + } finally { + super.endWrite(); + } } } // Returns a Writable/ReadByteChannel for now. Might consider to use // newFileChannel() instead, which dump the entry data into a regular
< prev index next >