private void printBar(boolean finished) {
		double numbar = Math.floor(20 * (double) current / (double) max);
		String strbar = "";
		int ii = 0;
		for (ii = 0; ii < numbar; ii++) {
			strbar += "=";
		}
		for (ii = (int) numbar; ii < 20; ii++) {
			strbar += " ";
		}
		long elapsed = (System.currentTimeMillis() - this.start);
		int seconds = (int) (elapsed / 1000) % 60;
		int minutes = (int) (elapsed / 1000) / 60;
		String strend = String.format("%02d", minutes) + ":"
				+ String.format("%02d", seconds);

		String strETA = "";
		if (elapsed < 2000) {
			strETA = "--:--";
		} else {
			long timeETA = elapsed * (long) ((double) max / (double) current);
			int ETAseconds = (int) (timeETA / 1000) % 60;
			int ETAminutes = (int) (timeETA / 1000) / 60;
			strETA = String.format("%02d", ETAminutes) + ":"
					+ String.format("%02d", ETAseconds);
		}
		if (finished) {
			strend = "Finished: " + strend + "               ";
		} else {
			strend = "Elapsed: " + strend + " ETA: " + strETA + "   ";
		}
		System.out.print("|" + strbar + "| " + strend);
		if (finished) {
			System.out.print("\n");
		} else {
			System.out.print("\r");
		}
	}