cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/util/WorkloadFileReader.java
private void readFile(final InputStream inputStream) throws IOException {
        try (BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream))) {
            int line = 1;
            String readLine;
            while ((readLine = readNextLine(reader, line)) != null) {
                final Cloudlet c = parseTraceLineAndCreateCloudlet(readLine, line);
                if(c != Cloudlet.NULL) {
                    cloudlets.add(c);
                    line++;
                }
            }
        }
    }
/**
     * Reads traces from a InputStream to a workload file
     * in any supported format.
     *
     * @param inputStream the stream that is able to read data from a workload file
     * @return <code>true</code> if successful, <code>false</code> otherwise.
     * @throws IOException           if the there was any error reading the file
     */
Reads traces from a InputStream to a workload file
in any supported format.

@param inputStream the stream that is able to read data from a workload file
@return true if successful, false otherwise.
@throws IOException           if the there was any error reading the file
Reads traces from a InputStream to a workload file in any supported format . @param inputStream the stream that is able to read data from a workload file @return true if successful false otherwise . @throws IOException if the there was any error reading the file
private void readFile(final InputStream inputStream) throws IOException {
        try (BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream))) {
            int line = 1;
            String readLine;
            while ((readLine = readNextLine(reader, line)) != null) {
                final Cloudlet c = parseTraceLineAndCreateCloudlet(readLine, line);
                if(c != Cloudlet.NULL) {
                    cloudlets.add(c);
                    line++;
                }
            }
        }
    }
private void readFile ( final InputStream inputStream ) throws IOException { try ( BufferedReader reader = new BufferedReader ( new InputStreamReader ( inputStream ) ) ) { int line = 1 ; String readLine ; while ( ( readLine = readNextLine ( reader , line ) ) != null ) { final Cloudlet c = parseTraceLineAndCreateCloudlet ( readLine , line ) ; if ( c != Cloudlet . NULL ) { cloudlets . add ( c ) ; line ++ ; } } } }
Reads traces from a InputStream to a workload file
 in any supported format.
Reads traces from a InputStream to a workload file in any supported format .