|
From: Lars H. <he...@se...> - 2010-06-15 22:07:36
|
Hi Alexander,
[...]
> Yeah, what *is* the hamster? A worker class that runs around in a loop? :)
The hamster stores some of the MIO events like startName(),
value("bla"), endName() into an internal structure and eases the
event handling because the mentioned events are reported as one
createName(...) event. The underlying mio.IMapHandlers do not have to
care about states etc.
It's a simplification of [1]. For details see [2].
[1] <http://code.google.com/p/mio/source/browse/semagia-mio/trunk/src/main/java/com/semagia/mio/IMapHandler.java>
[2] <http://code.google.com/p/mio/source/browse/semagia-mio/trunk/src/main/java/com/semagia/mio/helpers/AbstractHamsterMapHandler.java>
Best regards,
Lars
--
Semagia
<http://www.semagia.com/>
|