public class AdvDefaultHandler extends org.xml.sax.helpers.DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
protected File |
base_path |
protected HashMap |
generators |
protected boolean |
ignoreExtraDefaults |
protected Locator |
locator |
protected Object |
output |
| Constructor and Description |
|---|
AdvDefaultHandler(String s)
Constructor with no delegate handler.
|
AdvDefaultHandler(String s,
String ds,
AdvDefaultHandler d) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addGenerator(String element,
Class c) |
protected void |
addGenerator(String element,
Generator g) |
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
Object |
getOutput() |
static String[] |
list2sa(LinkedList l) |
Object |
parse(File f) |
void |
setBasePath(File f) |
void |
setDocumentLocator(Locator l) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningprotected Locator locator
protected HashMap generators
protected Object output
protected File base_path
protected boolean ignoreExtraDefaults
public AdvDefaultHandler(String s)
s - Start elementpublic AdvDefaultHandler(String s, String ds, AdvDefaultHandler d)
public void setDocumentLocator(Locator l)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class org.xml.sax.helpers.DefaultHandlerpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic Object parse(File f) throws ParserConfigurationException, FactoryConfigurationError, SAXException, IOException
public Object getOutput()
public void setBasePath(File f)
public static String[] list2sa(LinkedList l)
Copyright © 2014. All Rights Reserved.