jaxp/src/org/xml/sax/helpers/ParserAdapter.java
changeset 16953 a44e04deb948
parent 12457 c348e06f0e82
child 22139 f4b2aa462b46
equal deleted inserted replaced
16416:bcebd3fdefc9 16953:a44e04deb948
    72  * <p>This adapter does not test for duplicate Namespace-qualified
    72  * <p>This adapter does not test for duplicate Namespace-qualified
    73  * attribute names.</p>
    73  * attribute names.</p>
    74  *
    74  *
    75  * @since SAX 2.0
    75  * @since SAX 2.0
    76  * @author David Megginson
    76  * @author David Megginson
       
    77  * @version 2.0.1 (sax2r2)
    77  * @see org.xml.sax.helpers.XMLReaderAdapter
    78  * @see org.xml.sax.helpers.XMLReaderAdapter
    78  * @see org.xml.sax.XMLReader
    79  * @see org.xml.sax.XMLReader
    79  * @see org.xml.sax.Parser
    80  * @see org.xml.sax.Parser
    80  */
    81  */
    81 public class ParserAdapter implements XMLReader, DocumentHandler
    82 public class ParserAdapter implements XMLReader, DocumentHandler
    82 {
    83 {
    83 
    84     private static SecuritySupport ss = new SecuritySupport();
    84 
    85 
    85     ////////////////////////////////////////////////////////////////////
    86     ////////////////////////////////////////////////////////////////////
    86     // Constructors.
    87     // Constructors.
    87     ////////////////////////////////////////////////////////////////////
    88     ////////////////////////////////////////////////////////////////////
    88 
    89 
   100     public ParserAdapter ()
   101     public ParserAdapter ()
   101       throws SAXException
   102       throws SAXException
   102     {
   103     {
   103         super();
   104         super();
   104 
   105 
   105         String driver = System.getProperty("org.xml.sax.parser");
   106         String driver = ss.getSystemProperty("org.xml.sax.parser");
   106 
   107 
   107         try {
   108         try {
   108             setup(ParserFactory.makeParser());
   109             setup(ParserFactory.makeParser());
   109         } catch (ClassNotFoundException e1) {
   110         } catch (ClassNotFoundException e1) {
   110             throw new
   111             throw new