public class ReadResults extends Object implements Serializable, Iterable<ReadResult>
ReadResult
using getSubResults
method.
At single code read the ReadResult
object can be found at position 0.
On multi code read, the ReadResult
object at position 0 is a processed combination of all sub results.
Positions 1..n contain the individual subresults.Modifier and Type | Method and Description |
---|---|
int |
getCount()
Returns the number of results
|
ReadResult |
getResultAt(int index)
Returns a
ReadResult at the specified position |
List<ReadResult> |
getSubResults()
Helper method to retrieve multicode subresults.
|
String |
getXml()
Returns the raw XML recieved from the reader
|
Iterator<ReadResult> |
iterator() |
static ReadResults |
parse(ComplexResult result,
ReaderDevice.ResultParser parser,
ReaderDevice.ReadStringEncoding readStringEncoding) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Iterator<ReadResult> iterator()
iterator
in interface Iterable<ReadResult>
public ReadResult getResultAt(int index)
ReadResult
at the specified positionindex
- index of ReadResult
to retrieveReadResult
at the specified indexIndexOutOfBoundsException
- if the index is out of rangepublic int getCount()
public String getXml()
public List<ReadResult> getSubResults()
ReadResult
or null if only a single code was readpublic static ReadResults parse(ComplexResult result, ReaderDevice.ResultParser parser, ReaderDevice.ReadStringEncoding readStringEncoding) throws XmlPullParserException, IOException
XmlPullParserException
IOException