public void characters(char[] ch, int start, int length) throws SAXException { if (_inHead) { _head.characters(ch, start, length); } else if (_inDocument) { _handler.characters(ch, start, length); } }
public void endPrefixMapping(String prefix) throws SAXException { if (_inHead) { _head.endPrefixMapping(prefix); } else if (_inDocument) { _handler.endPrefixMapping(prefix); } else { _needNSScopePop = true; } }
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException { if (_inHead) { _head.ignorableWhitespace(ch, start, length); } else if (_inDocument) { _handler.ignorableWhitespace(ch, start, length); } }
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { if (_inHead) { _head.startElement(uri, localName, qName, atts); } else if (_inDocument) { if (_depth == 2 && ! _replayedHead) { if (HEAD_ELEMENT_NAME.equalsIgnoreCase(qName)) { _handler.startElement(uri, localName, qName, atts); _head.replay(_handler); } else { _handler.startElement("", HEAD_ELEMENT_NAME, HEAD_ELEMENT_NAME, new AttributesImpl()); _head.replay(_handler); _handler.endElement("", HEAD_ELEMENT_NAME, HEAD_ELEMENT_NAME);
public void skippedEntity(String name) throws SAXException { if (_inHead) { _head.skippedEntity(name); } else if (_inDocument) { _handler.skippedEntity(name); } }
public void startPrefixMapping(String prefix, String uri) throws SAXException { if (_inHead) { _head.startPrefixMapping(prefix, uri); } else if (_inDocument) { _handler.startPrefixMapping(prefix, uri); } else { _needNewNSScope = true; _currentNSScope.addNamespace(new Namespace(prefix, uri)); } }
public void endElement(String uri, String localName, String qName) throws SAXException { _depth--; if (_needNSScopePop) { _needNSScopePop = false; _currentNSScope = _currentNSScope.getParent(); } if (_inHead) { if (_depth == 1) { _currentNSScope.replay(_head, false); _inHead = false; } else { _head.endElement(uri, localName, qName); } } else if (_inDocument) { if (_depth == 1) { _currentNSScope.replay(_handler, false); _handler.endElement(uri, localName, qName); _handler.endDocument(); _inDocument = false; } else { _handler.endElement(uri, localName, qName); } } }
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { if (_inHead) { _head.startElement(uri, localName, qName, atts); } else if (_inDocument) { if (_depth == 2 && ! _replayedHead) { if (qName.equals(HEAD_ELEMENT_NAME)) { _handler.startElement(uri, localName, qName, atts); _head.replay(_handler); } else { _handler.startElement("", HEAD_ELEMENT_NAME, HEAD_ELEMENT_NAME, new AttributesImpl()); _head.replay(_handler); _handler.endElement("", HEAD_ELEMENT_NAME, HEAD_ELEMENT_NAME);
public void skippedEntity(String name) throws SAXException { if (_inHead) { _head.skippedEntity(name); } else if (_inDocument) { _handler.skippedEntity(name); } }
public void startPrefixMapping(String prefix, String uri) throws SAXException { if (_inHead) { _head.startPrefixMapping(prefix, uri); } else if (_inDocument) { _handler.startPrefixMapping(prefix, uri); } else { _needNewNSScope = true; _currentNSScope.addNamespace(new Namespace(prefix, uri)); } }
public void endElement(String uri, String localName, String qName) throws SAXException { _depth--; if (_needNSScopePop) { _needNSScopePop = false; _currentNSScope = _currentNSScope.getParent(); } if (_inHead) { if (_depth == 1) { _currentNSScope.replay(_head, false); _inHead = false; } else { _head.endElement(uri, localName, qName); } } else if (_inDocument) { if (_depth == 1) { _currentNSScope.replay(_handler, false); _handler.endElement(uri, localName, qName); _handler.endDocument(); _inDocument = false; } else { _handler.endElement(uri, localName, qName); } } }
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { if (_inHead) { _head.startElement(uri, localName, qName, atts); } else if (_inDocument) { if (_depth == 2 && ! _replayedHead) { if (HEAD_ELEMENT_NAME.equalsIgnoreCase(qName)) { _handler.startElement(uri, localName, qName, atts); _head.replay(_handler); } else { _handler.startElement("", HEAD_ELEMENT_NAME, HEAD_ELEMENT_NAME, new AttributesImpl()); _head.replay(_handler); _handler.endElement("", HEAD_ELEMENT_NAME, HEAD_ELEMENT_NAME);
public void endPrefixMapping(String prefix) throws SAXException { if (_inHead) { _head.endPrefixMapping(prefix); } else if (_inDocument) { _handler.endPrefixMapping(prefix); } else { _needNSScopePop = true; } }
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException { if (_inHead) { _head.ignorableWhitespace(ch, start, length); } else if (_inDocument) { _handler.ignorableWhitespace(ch, start, length); } }
public void skippedEntity(String name) throws SAXException { if (_inHead) { _head.skippedEntity(name); } else if (_inDocument) { _handler.skippedEntity(name); } }
public void characters(char[] ch, int start, int length) throws SAXException { if (_inHead) { _head.characters(ch, start, length); } else if (_inDocument) { _handler.characters(ch, start, length); } }
public void startPrefixMapping(String prefix, String uri) throws SAXException { if (_inHead) { _head.startPrefixMapping(prefix, uri); } else if (_inDocument) { _handler.startPrefixMapping(prefix, uri); } else { _needNewNSScope = true; _currentNSScope.addNamespace(new Namespace(prefix, uri)); } }
public void endElement(String uri, String localName, String qName) throws SAXException { _depth--; if (_needNSScopePop) { _needNSScopePop = false; _currentNSScope = _currentNSScope.getParent(); } if (_inHead) { if (_depth == 1) { _currentNSScope.replay(_head, false); _inHead = false; } else { _head.endElement(uri, localName, qName); } } else if (_inDocument) { if (_depth == 1) { _currentNSScope.replay(_handler, false); _handler.endElement(uri, localName, qName); _handler.endDocument(); _inDocument = false; } else { _handler.endElement(uri, localName, qName); } } }
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { if (_inHead) { _head.startElement(uri, localName, qName, atts); } else if (_inDocument) { if (_depth == 2 && ! _replayedHead) { if (HEAD_ELEMENT_NAME.equalsIgnoreCase(qName)) { _handler.startElement(uri, localName, qName, atts); _head.replay(_handler); } else { _handler.startElement("", HEAD_ELEMENT_NAME, HEAD_ELEMENT_NAME, new AttributesImpl()); _head.replay(_handler); _handler.endElement("", HEAD_ELEMENT_NAME, HEAD_ELEMENT_NAME);
public void endPrefixMapping(String prefix) throws SAXException { if (_inHead) { _head.endPrefixMapping(prefix); } else if (_inDocument) { _handler.endPrefixMapping(prefix); } else { _needNSScopePop = true; } }