response.setHeader("Cache-Control", "no-cache"); response.setHeader("X-Robots-Tag", "none"); ]]> Decode Succeeded
@SuppressWarnings("unchecked") Iterable<Result> results = (Iterable<Result>) request.getAttribute("results"); for (Result result : results) { ParsedResult parsedResult = ResultParser.parseResult(result); String text = result.getText(); if (text == null) { text = "(Not applicable)"; } else { text = XmlEscapers.xmlContentEscaper().escape(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 = XmlEscapers.xmlContentEscaper().escape(displayResult); }
Raw text
text
Raw bytes
rawBytesString
Barcode format result.getBarcodeFormat()
Parsed Result Type parsedResult.getType()
Parsed Result
displayResult
}