This contains various Java tips I've accumulated lately.
- The SelfCleaningResultSet class is a proxy for JDBC that delegates to a ResultSet, but also calls close() on a Statement when the ResultSet is closed.
- The ForcedDTD class is a SAX EntityResolver (implementing the EntityResolver2 interface) that can force an XML document to be validated against a given DTD, regardless of whether an <!DOCTYPE> declaration is given, and regardless of where that <!DOCTYPE> declaration points. UPDATE: This doesn't appear to work right when validating with Xerces. Any tips how to make this work would be appreciated