public static class TransformXML.SAXInterface<T>
extends org.xml.sax.helpers.DefaultHandler
Modifier and Type | Field and Description |
---|---|
protected int |
depth
How far down we are in the nested tags.
|
protected java.util.List<java.lang.String> |
elementsToBeTransformed |
protected java.util.function.Function<java.lang.String,T> |
function |
protected java.io.PrintWriter |
outWriter |
protected java.lang.StringBuilder |
textToBeTransformed |
Constructor and Description |
---|
SAXInterface() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] buf,
int offset,
int len) |
void |
endDocument() |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName) |
void |
processText(java.lang.String text) |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes) |
protected java.util.List<java.lang.String> elementsToBeTransformed
protected java.lang.StringBuilder textToBeTransformed
protected java.io.PrintWriter outWriter
protected java.util.function.Function<java.lang.String,T> function
protected int depth
public void endDocument()
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void processText(java.lang.String text)
public void characters(char[] buf, int offset, int len) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException