Exemplo n.º 1
0
 /* 349:    */
 /* 350:    */ public void parse(InputSource input) /* 351:    */ throws SAXException
       /* 352:    */ {
   /* 353:600 */ if ((input instanceof DocumentInputSource))
   /* 354:    */ {
     /* 355:601 */ DocumentInputSource documentInput = (DocumentInputSource) input;
     /* 356:602 */ Document document = documentInput.getDocument();
     /* 357:603 */ write(document);
     /* 358:    */ }
   /* 359:    */ else
   /* 360:    */ {
     /* 361:605 */ throw new SAXNotSupportedException(
         "This XMLReader can only accept <dom4j> InputSource objects");
     /* 362:    */ }
   /* 363:    */ }
Exemplo n.º 2
0
 /**
  * DOCUMENT ME!
  *
  * @return the document which is being used as the JAXP {@link SAXSource}
  */
 public Document getDocument() {
   DocumentInputSource source = (DocumentInputSource) getInputSource();
   return source.getDocument();
 }