String resultString = outStream.toString(); if (!resultString.equals("")) {
String resultString = outStream.toString();       try { StringTokenizer st = new StringTokenizer(resultString, " "); String programCycles  = st.nextToken(); String comparisonLine = st.nextToken();   int cycles = Integer.parseInt(programCycles, 16);    String message = (programCycles + " " + cycles + " " + comparisonLine);
    static boolean rawCompare(String rawOutputFile, String expectedFile,			      String root, String filename,			      String options[]) {	try {	    // set up an output stream so we can grab the output of the 	    // running the comparison program (as this will tell us what	    // the cycle count was.	    ByteArrayOutputStream outStream = new ByteArrayOutputStream();	    	    boolean result = executeNative(getRawCommandArray(rawOutputFile, expectedFile),					   outStream);	    // if we got a good comparison, print out the results (eg speed) to the result printer	    if (result == true) {		String resultString = outStream.toString();		if (!resultString.equals("")) {		    // make a note that we are starting a comparison in the results file		    ResultPrinter.printRawHeader(root + filename,						 flattenCommandArray(options));		    		    ResultPrinter.printRawResults(resultString);		} else {		    ResultPrinter.printError("ERROR: result of executing command was true, but no " +					     "output was generated.");		}	    }	    return result;	} catch (Exception e) {	    ResultPrinter.printError("Caught an exception while comparing raw output: " +				     e.getMessage());	    e.printStackTrace();	    return false;	}    }