예제 #1
0
 public void readSAXfromDOM4J(
     Document doc, ContentHandler contentHandler, ErrorHandler errorHandler) throws SAXException {
   SAXWriter writer = new SAXWriter(contentHandler);
   writer.setErrorHandler(errorHandler);
   writer.write(doc);
 }
예제 #2
0
파일: SAXWriter.java 프로젝트: enenuki/phd
 /* 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:    */ }