Exemplo n.º 1
0
 public void readSAXfromDOM4J(
     Document doc, ContentHandler contentHandler, ErrorHandler errorHandler) throws SAXException {
   SAXWriter writer = new SAXWriter(contentHandler);
   writer.setErrorHandler(errorHandler);
   writer.write(doc);
 }
Exemplo n.º 2
0
 /* 287:    */
 /* 288:    */ public void setXMLReader(XMLReader xmlReader) /* 289:    */ {
   /* 290:475 */ setContentHandler(xmlReader.getContentHandler());
   /* 291:476 */ setDTDHandler(xmlReader.getDTDHandler());
   /* 292:477 */ setEntityResolver(xmlReader.getEntityResolver());
   /* 293:478 */ setErrorHandler(xmlReader.getErrorHandler());
   /* 294:    */ }