src/java.base/share/classes/java/util/zip/ZipOutputStream.java
changeset 50238 a9307f400f5a
parent 47216 71c04702a3d5
child 50955 1acfd2f56d72
equal deleted inserted replaced
50237:ec52b4d094c0 50238:a9307f400f5a
    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