Code example for ParserAdapter

Methods: parsesetContentHandler

0
        GMLFilterDocument documentFilter = new GMLFilterDocument(geometryFilter);
 
        // read in XML file and parse to content handler 
        SAXParserFactory factory = SAXParserFactory.newInstance();
        SAXParser parser = factory.newSAXParser();
        ParserAdapter adapter = new ParserAdapter(parser.getParser());
 
        adapter.setContentHandler(documentFilter);
        adapter.parse(requestSource);
        LOGGER.fine("just parsed: " + requestSource);
        LOGGER.fine("passing filter: " + contentHandler.getFilter());
 
        return contentHandler.getFilter();
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java