예제 #1
0
    /**
     * <i>[SAX ContentHandler interface support]</i> Processes a start of document event.
     *
     * <p>This implementation creates a new JDOM document builder and marks the current result as
     * "under construction".
     *
     * @throws SAXException if any error occurred while creating the document builder.
     */
    public void startDocument() throws SAXException {
      this.startDocumentReceived = true;

      // Reset any previously set result.
      setResult(null);

      // Create the actual JDOM document builder and register it as
      // ContentHandler on the superclass (XMLFilterImpl): this
      // implementation will take care of propagating the LexicalHandler
      // events.
      this.saxHandler = new FragmentHandler(getFactory());
      super.setContentHandler(this.saxHandler);

      // And propagate event.
      super.startDocument();
    }
예제 #2
0
 /** <i>[SAX ContentHandler interface support]</i> Receives notification of a skipped entity. */
 public void skippedEntity(String name) throws SAXException {
   this.ensureInitialization();
   super.skippedEntity(name);
 }
예제 #3
0
 /**
  * <i>[SAX ContentHandler interface support]</i> Receives notification of a processing
  * instruction.
  */
 public void processingInstruction(String target, String data) throws SAXException {
   this.ensureInitialization();
   super.processingInstruction(target, data);
 }
예제 #4
0
 /**
  * <i>[SAX ContentHandler interface support]</i> Receives notification of ignorable whitespace
  * in element content.
  */
 public void ignorableWhitespace(char ch[], int start, int length) throws SAXException {
   this.ensureInitialization();
   super.ignorableWhitespace(ch, start, length);
 }
예제 #5
0
 /** <i>[SAX ContentHandler interface support]</i> Receives notification of character data. */
 public void characters(char ch[], int start, int length) throws SAXException {
   this.ensureInitialization();
   super.characters(ch, start, length);
 }
예제 #6
0
 /**
  * <i>[SAX ContentHandler interface support]</i> Begins the scope of a prefix-URI Namespace
  * mapping.
  */
 public void startPrefixMapping(String prefix, String uri) throws SAXException {
   this.ensureInitialization();
   super.startPrefixMapping(prefix, uri);
 }
예제 #7
0
 /**
  * <i>[SAX ContentHandler interface support]</i> Receives notification of the beginning of an
  * element.
  *
  * <p>This implementation ensures that startDocument() has been called prior processing an
  * element.
  *
  * @param nsURI the Namespace URI, or the empty string if the element has no Namespace URI or if
  *     Namespace processing is not being performed.
  * @param localName the local name (without prefix), or the empty string if Namespace processing
  *     is not being performed.
  * @param qName the qualified name (with prefix), or the empty string if qualified names are not
  *     available.
  * @param atts The attributes attached to the element. If there are no attributes, it shall be
  *     an empty Attributes object.
  * @throws SAXException if any error occurred while creating the document builder.
  */
 public void startElement(String nsURI, String localName, String qName, Attributes atts)
     throws SAXException {
   this.ensureInitialization();
   super.startElement(nsURI, localName, qName, atts);
 }