private void handleEndDocument() throws SAXException { if (getContentHandler() != null) { getContentHandler().endDocument(); } }
private void handleEndDocument() throws SAXException { if (getContentHandler() != null) { getContentHandler().endDocument(); } }
private void handleProcessingInstruction() throws SAXException { if (getContentHandler() != null) { getContentHandler().processingInstruction(this.reader.getPITarget(), this.reader.getPIData()); } }
private void handleEndElement() throws SAXException { if (getContentHandler() != null) { QName qName = this.reader.getName(); if (hasNamespacesFeature()) { getContentHandler().endElement(qName.getNamespaceURI(), qName.getLocalPart(), toQualifiedName(qName)); for (int i = 0; i < this.reader.getNamespaceCount(); i++) { String prefix = this.reader.getNamespacePrefix(i); if (prefix == null) { prefix = ""; } endPrefixMapping(prefix); } } else { getContentHandler().endElement("", "", toQualifiedName(qName)); } } }
private void handleProcessingInstruction() throws SAXException { if (getContentHandler() != null) { getContentHandler().processingInstruction(this.reader.getPITarget(), this.reader.getPIData()); } }
private void handleStartElement() throws SAXException { if (getContentHandler() != null) { QName qName = this.reader.getName(); if (hasNamespacesFeature()) { for (int i = 0; i < this.reader.getNamespaceCount(); i++) { startPrefixMapping(this.reader.getNamespacePrefix(i), this.reader.getNamespaceURI(i)); } for (int i = 0; i < this.reader.getAttributeCount(); i++) { String prefix = this.reader.getAttributePrefix(i); String namespace = this.reader.getAttributeNamespace(i); if (StringUtils.hasLength(namespace)) { startPrefixMapping(prefix, namespace); } } getContentHandler().startElement(qName.getNamespaceURI(), qName.getLocalPart(), toQualifiedName(qName), getAttributes()); } else { getContentHandler().startElement("", "", toQualifiedName(qName), getAttributes()); } } }
private void handleEndElement() throws SAXException { if (getContentHandler() != null) { QName qName = this.reader.getName(); if (hasNamespacesFeature()) { getContentHandler().endElement(qName.getNamespaceURI(), qName.getLocalPart(), toQualifiedName(qName)); for (int i = 0; i < this.reader.getNamespaceCount(); i++) { String prefix = this.reader.getNamespacePrefix(i); if (prefix == null) { prefix = ""; } endPrefixMapping(prefix); } } else { getContentHandler().endElement("", "", toQualifiedName(qName)); } } }
if (getContentHandler() != null) { final Location location = this.reader.getLocation(); getContentHandler().setDocumentLocator(new Locator2() { @Override public int getColumnNumber() { getContentHandler().startDocument(); if (this.reader.standaloneSet()) { setStandalone(this.reader.isStandalone());
private void handleCharacters() throws SAXException { if (XMLStreamConstants.CDATA == this.reader.getEventType() && getLexicalHandler() != null) { getLexicalHandler().startCDATA(); } if (getContentHandler() != null) { getContentHandler().characters(this.reader.getTextCharacters(), this.reader.getTextStart(), this.reader.getTextLength()); } if (XMLStreamConstants.CDATA == this.reader.getEventType() && getLexicalHandler() != null) { getLexicalHandler().endCDATA(); } }
private void handleStartElement() throws SAXException { if (getContentHandler() != null) { QName qName = this.reader.getName(); if (hasNamespacesFeature()) { for (int i = 0; i < this.reader.getNamespaceCount(); i++) { startPrefixMapping(this.reader.getNamespacePrefix(i), this.reader.getNamespaceURI(i)); } for (int i = 0; i < this.reader.getAttributeCount(); i++) { String prefix = this.reader.getAttributePrefix(i); String namespace = this.reader.getAttributeNamespace(i); if (StringUtils.hasLength(namespace)) { startPrefixMapping(prefix, namespace); } } getContentHandler().startElement(qName.getNamespaceURI(), qName.getLocalPart(), toQualifiedName(qName), getAttributes()); } else { getContentHandler().startElement("", "", toQualifiedName(qName), getAttributes()); } } }
if (getContentHandler() != null) { final Location location = this.reader.getLocation(); getContentHandler().setDocumentLocator(new Locator2() { @Override public int getColumnNumber() { getContentHandler().startDocument(); if (this.reader.standaloneSet()) { setStandalone(this.reader.isStandalone());
private void handleCharacters() throws SAXException { if (XMLStreamConstants.CDATA == this.reader.getEventType() && getLexicalHandler() != null) { getLexicalHandler().startCDATA(); } if (getContentHandler() != null) { getContentHandler().characters(this.reader.getTextCharacters(), this.reader.getTextStart(), this.reader.getTextLength()); } if (XMLStreamConstants.CDATA == this.reader.getEventType() && getLexicalHandler() != null) { getLexicalHandler().endCDATA(); } }
private void handleEndDocument() throws SAXException { if (getContentHandler() != null) { getContentHandler().endDocument(); } }
private void handleProcessingInstruction() throws SAXException { if (getContentHandler() != null) { getContentHandler().processingInstruction(reader.getPITarget(), reader.getPIData()); } }
private void handleEndElement() throws SAXException { if (getContentHandler() != null) { QName qName = reader.getName(); if (hasNamespacesFeature()) { getContentHandler().endElement(qName.getNamespaceURI(), qName.getLocalPart(), toQualifiedName(qName)); for (int i = 0; i < reader.getNamespaceCount(); i++) { String prefix = reader.getNamespacePrefix(i); if (prefix == null) { prefix = ""; } endPrefixMapping(prefix); } } else { getContentHandler().endElement("", "", toQualifiedName(qName)); } } }
private void handleStartElement() throws SAXException { if (getContentHandler() != null) { QName qName = reader.getName(); if (hasNamespacesFeature()) { for (int i = 0; i < reader.getNamespaceCount(); i++) { startPrefixMapping(reader.getNamespacePrefix(i), reader.getNamespaceURI(i)); } for (int i = 0; i < reader.getAttributeCount(); i++) { String prefix = reader.getAttributePrefix(i); String namespace = reader.getAttributeNamespace(i); if (StringUtils.hasLength(namespace)) { startPrefixMapping(prefix, namespace); } } getContentHandler().startElement(qName.getNamespaceURI(), qName.getLocalPart(), toQualifiedName(qName), getAttributes()); } else { getContentHandler().startElement("", "", toQualifiedName(qName), getAttributes()); } } }
if (getContentHandler() != null) { final Location location = reader.getLocation(); getContentHandler().setDocumentLocator(new Locator2() { getContentHandler().startDocument(); if (reader.standaloneSet()) { setStandalone(reader.isStandalone());
private void handleCharacters() throws SAXException { if (getContentHandler() != null && reader.isWhiteSpace()) { getContentHandler() .ignorableWhitespace(reader.getTextCharacters(), reader.getTextStart(), reader.getTextLength()); return; } if (XMLStreamConstants.CDATA == reader.getEventType() && getLexicalHandler() != null) { getLexicalHandler().startCDATA(); } if (getContentHandler() != null) { getContentHandler().characters(reader.getTextCharacters(), reader.getTextStart(), reader.getTextLength()); } if (XMLStreamConstants.CDATA == reader.getEventType() && getLexicalHandler() != null) { getLexicalHandler().endCDATA(); } }
private void handleEndDocument() throws SAXException { if (getContentHandler() != null) { getContentHandler().endDocument(); } }
private void handleCharacters() throws SAXException { if (XMLStreamConstants.CDATA == this.reader.getEventType() && getLexicalHandler() != null) { getLexicalHandler().startCDATA(); } if (getContentHandler() != null) { getContentHandler().characters(this.reader.getTextCharacters(), this.reader.getTextStart(), this.reader.getTextLength()); } if (XMLStreamConstants.CDATA == this.reader.getEventType() && getLexicalHandler() != null) { getLexicalHandler().endCDATA(); } }