cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/util/WorkloadFileReader.java
protected boolean readZipFile(final File fl) throws IOException {
        try (ZipFile zipFile = new ZipFile(fl)) {
            // ZipFile offers an Enumeration of all the files in the file
            final Enumeration<? extends ZipEntry> zipEntries = zipFile.entries();
            while (zipEntries.hasMoreElements()) {
                final ZipEntry zipEntry = zipEntries.nextElement();
                readFile(zipFile.getInputStream(zipEntry));
            }
            return true;
        }
    }
/**
     * Reads a set of trace files inside a Zip file.
     *
     * @param fl a zip file name
     * @return <code>true</code> if reading a file is successful;
     * <code>false</code> otherwise.
     * @throws IOException if the there was any error reading the file
     */
Reads a set of trace files inside a Zip file.
@param fl a zip file name
@return true if reading a file is successful;
false otherwise.
@throws IOException if the there was any error reading the file
Reads a set of trace files inside a Zip file . @param fl a zip file name @return true if reading a file is successful ; false otherwise . @throws IOException if the there was any error reading the file
protected boolean readZipFile(final File fl) throws IOException {
        try (ZipFile zipFile = new ZipFile(fl)) {
            final Enumeration<? extends ZipEntry> zipEntries = zipFile.entries();
            while (zipEntries.hasMoreElements()) {
                final ZipEntry zipEntry = zipEntries.nextElement();
                readFile(zipFile.getInputStream(zipEntry));
            }
            return true;
        }
    }
protected boolean readZipFile ( final File fl ) throws IOException { try ( ZipFile zipFile = new ZipFile ( fl ) ) { final Enumeration < ? extends ZipEntry > zipEntries = zipFile . entries ( ) ; while ( zipEntries . hasMoreElements ( ) ) { final ZipEntry zipEntry = zipEntries . nextElement ( ) ; readFile ( zipFile . getInputStream ( zipEntry ) ) ; } return true ; } }
Reads a set of trace files inside a Zip file.
Reads a set of trace files inside a Zip file .
// ZipFile offers an Enumeration of all the files in the file