equal
deleted
inserted
replaced
95 private void ensureOpen() throws IOException { |
95 private void ensureOpen() throws IOException { |
96 if (closed) { |
96 if (closed) { |
97 throw new IOException("Stream closed"); |
97 throw new IOException("Stream closed"); |
98 } |
98 } |
99 } |
99 } |
|
100 |
100 /** |
101 /** |
101 * Compression method for uncompressed (STORED) entries. |
102 * Compression method for uncompressed (STORED) entries. |
102 */ |
103 */ |
103 public static final int STORED = ZipEntry.STORED; |
104 public static final int STORED = ZipEntry.STORED; |
104 |
105 |
230 } |
231 } |
231 if (! names.add(e.name)) { |
232 if (! names.add(e.name)) { |
232 throw new ZipException("duplicate entry: " + e.name); |
233 throw new ZipException("duplicate entry: " + e.name); |
233 } |
234 } |
234 if (zc.isUTF8()) |
235 if (zc.isUTF8()) |
235 e.flag |= EFS; |
236 e.flag |= USE_UTF8; |
236 current = new XEntry(e, written); |
237 current = new XEntry(e, written); |
237 xentries.add(current); |
238 xentries.add(current); |
238 writeLOC(current); |
239 writeLOC(current); |
239 } |
240 } |
240 |
241 |