response.setHeader("Cache-Control", "no-cache"); response.setHeader("X-Robots-Tag", "none"); ]]> Decode Succeeded
for (Result result : (List<Result>) request.getAttribute("results")) { ParsedResult parsedResult = ResultParser.parseResult(result); String text = result.getText(); if (text == null) { text = "(Not applicable)"; } else { text = StringEscapeUtils.escapeXml(text); } byte[] rawBytes = result.getRawBytes(); String rawBytesString; if (rawBytes == null) { rawBytesString = "(Not applicable)"; } else { rawBytesString = OutputUtils.arrayToString(rawBytes); } String displayResult = parsedResult.getDisplayResult(); if (displayResult == null) { displayResult = "(Not applicable)"; } else { displayResult = StringEscapeUtils.escapeXml(displayResult); }
Raw text
text
Raw bytes
rawBytesString
Barcode format result.getBarcodeFormat()
Parsed Result Type parsedResult.getType()
Parsed Result
displayResult

}