/** * Notify the existence of a comment. Note that in SAX this is part of LexicalHandler interface * rather than the ContentHandler interface. */ public void comment (char ch[], int start, int length) throws SAXException { try { flush(); if (!inDTD) { receiver.comment(new CharSlice(ch, start, length), 0, 0); } } catch (XPathException err) { throw new SAXException(err); } }
/** * Notify the existence of a comment. Note that in SAX this is part of LexicalHandler interface * rather than the ContentHandler interface. */ public void comment(char ch[], int start, int length) throws SAXException { try { flush(true); if (!inDTD) { receiver.comment(new CharSlice(ch, start, length), localLocator, 0); } } catch (XPathException err) { throw new SAXException(err); } }
/** * Notify the existence of a comment. Note that in SAX this is part of LexicalHandler interface * rather than the ContentHandler interface. */ public void comment (char ch[], int start, int length) throws SAXException { try { flush(); if (!inDTD) { receiver.comment(new CharSlice(ch, start, length), 0, 0); } } catch (XPathException err) { throw new SAXException(err); } }
/** * Notify the existence of a comment. Note that in SAX this is part of LexicalHandler interface * rather than the ContentHandler interface. */ public void comment(char ch[], int start, int length) throws SAXException { try { flush(true); if (!inDTD) { receiver.comment(new CharSlice(ch, start, length), localLocator, 0); } } catch (XPathException err) { throw new SAXException(err); } }
/** * Notify the existence of a comment. Note that in SAX this is part of LexicalHandler interface * rather than the ContentHandler interface. */ public void comment (char ch[], int start, int length) throws SAXException { try { flush(); if (!inDTD) { receiver.comment(new CharSlice(ch, start, length), 0, 0); } } catch (XPathException err) { throw new SAXException(err); } }
/** * Receive notification of the end of a document */ public void endDocument () throws SAXException { // System.err.println("RCH: end document"); try { flush(); receiver.endDocument(); receiver.close(); } catch (ValidationException err) { err.setLocator(locator); throw new SAXException(err); } catch (XPathException err) { throw new SAXException(err); } }
/** * Receive notification of the end of a document */ public void endDocument () throws SAXException { // System.err.println("RCH: end document"); try { flush(); receiver.endDocument(); receiver.close(); } catch (ValidationException err) { err.setLocator(locator); throw new SAXException(err); } catch (XPathException err) { throw new SAXException(err); } }
/** * Receive notification of the end of a document */ public void endDocument () throws SAXException { // System.err.println("RCH: end document"); try { flush(); receiver.endDocument(); receiver.close(); } catch (ValidationException err) { err.setLocator(locator); throw new SAXException(err); } catch (XPathException err) { throw new SAXException(err); } }
flush(true); if (!inDTD) { if (name == null) {
flush(true); if (!inDTD) { if (name == null) {
/** * Receive notification of the end of a document */ public void endDocument() throws SAXException { // System.err.println("RCH: end document"); try { flush(true); receiver.endDocument(); receiver.close(); } catch (ValidationException err) { err.setLocator(localLocator); throw new SAXException(err); } catch (QuitParsingException err) { // no action: not worth bothering at this stage of the game } catch (XPathException err) { err.maybeSetLocation(localLocator); throw new SAXException(err); } }
/** * Receive notification of the end of a document */ public void endDocument() throws SAXException { // System.err.println("RCH: end document"); try { flush(true); receiver.endDocument(); receiver.close(); } catch (ValidationException err) { err.setLocator(localLocator); throw new SAXException(err); } catch (QuitParsingException err) { // no action: not worth bothering at this stage of the game } catch (XPathException err) { err.maybeSetLocation(localLocator); throw new SAXException(err); } }
flush(); if (!inDTD) { if (name==null) {
/** * Report the end of an element (the close tag) */ public void endElement (String uri, String localname, String rawname) throws SAXException { //System.err.println("ReceivingContentHandler#End element " + rawname); try { flush(); receiver.endElement(); } catch (ValidationException err) { err.setLocator(locator); if (!err.hasBeenReported()) { try { pipe.getErrorListener().fatalError(err); } catch (TransformerException e) { // } } err.setHasBeenReported(); throw new SAXException(err); } catch (XPathException err) { throw new SAXException(err); } }
/** * Report the end of an element (the close tag) */ public void endElement (String uri, String localname, String rawname) throws SAXException { //System.err.println("ReceivingContentHandler#End element " + rawname); try { flush(); receiver.endElement(); } catch (ValidationException err) { err.setLocator(locator); if (!err.hasBeenReported()) { try { pipe.getErrorListener().fatalError(err); } catch (TransformerException e) { // } } err.setHasBeenReported(); throw new SAXException(err); } catch (XPathException err) { throw new SAXException(err); } }
/** * Report the end of an element (the close tag) */ public void endElement(String uri, String localname, String rawname) throws SAXException { //System.err.println("ReceivingContentHandler#End element " + rawname); try { // don't attempt whitespace compression if this end tag follows a start tag flush(!afterStartTag); localLocator.levelInEntity--; receiver.endElement(); } catch (ValidationException err) { err.maybeSetLocation(localLocator); if (!err.hasBeenReported()) { pipe.getErrorListener().fatalError(err); } err.setHasBeenReported(true); throw new SAXException(err); } catch (XPathException err) { err.maybeSetLocation(localLocator); throw new SAXException(err); } afterStartTag = false; }
/** * Report the end of an element (the close tag) */ public void endElement (String uri, String localname, String rawname) throws SAXException { //System.err.println("ReceivingContentHandler#End element " + rawname); try { flush(); receiver.endElement(); } catch (ValidationException err) { err.maybeSetLocation(ExpressionLocation.makeFromSax(locator)); if (!err.hasBeenReported()) { try { pipe.getErrorListener().fatalError(err); } catch (TransformerException e) { // } } err.setHasBeenReported(); throw new SAXException(err); } catch (XPathException err) { throw new SAXException(err); } }
/** * Report the end of an element (the close tag) */ public void endElement(String uri, String localname, String rawname) throws SAXException { //System.err.println("ReceivingContentHandler#End element " + rawname); try { // don't attempt whitespace compression if this end tag follows a start tag flush(!afterStartTag); localLocator.levelInEntity--; receiver.endElement(); } catch (ValidationException err) { err.maybeSetLocation(localLocator); if (!err.hasBeenReported()) { pipe.getErrorListener().fatalError(err); } err.setHasBeenReported(true); throw new SAXException(err); } catch (XPathException err) { err.maybeSetLocation(localLocator); throw new SAXException(err); } afterStartTag = false; }