Java's unintuitive SAX parser