29Copyright © 2000-2001 Profile Consulting Inc.29
Reflection Example

This HTML was generated from a Java program, using SAX to read an XML document.
For each tag, like title, a Java class optionally defines start and end methods named for the tag, like titleStart() and titleEnd().
A generic method uses reflection to find and invoke those methods.

Example: ReflectionFragment.java