BATIK-897: added close() method to free underlying stream used by Scanner


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/batik/trunk@1614076 13f79535-47bb-0310-9956-ffa450edef68
BATIK-946: Account for possibly null XML_PARSER_VALIDATING key


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/batik/trunk@1614177 13f79535-47bb-0310-9956-ffa450edef68