public static class TransformXML.SAXInterface<T> extends DefaultHandler
Modifier and Type | Field and Description |
---|---|
protected int |
depth
How far down we are in the nested tags.
|
protected List<String> |
elementsToBeTransformed |
protected Function<String,T> |
function |
protected PrintWriter |
outWriter |
protected StringBuffer |
textToBeTransformed |
Constructor and Description |
---|
SAXInterface() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] buf,
int offset,
int len) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
void |
processText(String text) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
protected StringBuffer textToBeTransformed
protected PrintWriter outWriter
protected int depth
public void endDocument()
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void processText(String text)
public void characters(char[] buf, int offset, int len) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException