return Integer.parseInt(result.toString(), 10);
return Integer.parseInt(new String(resultStream.toByteArray(), "UTF-8"), 10);
    public static int readNumberFromReportFile(InputStream reportFile) throws IOException {        int b;        StringBuffer result = new StringBuffer();        while ((b = reportFile.read()) != ':') {            result.append((char)b);        }        return Integer.parseInt(result.toString(), 10);    }