Agilefant/agilefant — pull request #1 by Gekkio (2012-06-06 08:40:22+00:00)
Title: Refactoring and fixes to anynomus export

In practice these are not fatal problems, but memory leaks are always nasty.

+ Fixed Connection, PreparedStatement and ResultSet leaks
+ Force UTF-8 encoding (previously used platform encoding).
In practice this doesn't matter but generally it's
extremely important to always define an encoding when
converting between bytes and strings
+ Removed useless state and converted code to static functions.
In theory the database connection info could be injected
with Spring and it would then make sense to use a normal
object, but in this case it's simpler to use a static function
and no object state at all.