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, warning
protected 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 ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public 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.