Note: instances of LocationInfo are only guaranteed to persist as long as the (stream) reader points to the current element (whatever it is). After next call to streamReader.next
, it it possible that the previously accessed LocationInfo points to the old information, new information, or may even contain just garbage. That is, for each new event, getLocationInfo
should be called separately.
|
|