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, warningprotected StringBuffer textToBeTransformed
protected PrintWriter outWriter
protected int depth
public void endDocument()
endDocument in interface ContentHandlerendDocument in class DefaultHandlerpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionpublic void processText(String text)
public void characters(char[] buf,
int offset,
int len)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXException