|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
gate.util.Lax
LAX (LazyProgrammer Api for XML) layer for a SAX parser, based on Sun's JAXP layer...so it works with any JAXP compliant parser
Constructor Summary | |
Lax(LaxErrorHandler leh)
Lax default constructor |
|
Lax(Object handler_,
LaxErrorHandler leh)
Lax ctor with a single handler |
Method Summary | |
void |
addHandler(Object objHandler_)
Add a handler to the list of handler objects. |
void |
characters(char[] caChars,
int iStart,
int iEnd)
Handle an incoming block of text by calling the textOf method for the current tag. |
void |
endDocument()
endDocument method comment. |
void |
endElement(String uri,
String qName,
String sTag)
Call all end tag methods in the handler list |
void |
error(org.xml.sax.SAXParseException ex)
error method comment. |
void |
fatalError(org.xml.sax.SAXParseException ex)
fatalError method comment. |
LaxErrorHandler |
getErrorHandler()
Get the CustomErrorHandler |
boolean |
getNamespacesAware()
Get the namespacesAware property |
boolean |
getValidating()
Get the validating property |
void |
parseXmlDocument(File xmlFile)
|
void |
parseXmlDocument(org.xml.sax.InputSource xmlInputSource)
|
void |
parseXmlDocument(InputStream xmlInputStream)
|
void |
parseXmlDocument(String xmlURI)
|
void |
setErrorHandler(LaxErrorHandler leh)
Sets the CustomErrorHandler |
void |
setNamespacesAware(boolean namespacesAware)
Sets the parser to be a namespaces aware one implicit parameter is false (so the parser is not a namespaces aware one) |
void |
setValidating(boolean validating)
Sets the parser to be a validating one implicit parameter is false (so the parser is not a validating one) |
void |
startDocument()
startDocument method comment. |
void |
startElement(String uri,
String qName,
String sTag,
org.xml.sax.Attributes alAttrs)
Call all start methods for this tag. |
void |
warning(org.xml.sax.SAXParseException ex)
warning method comment. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Lax(LaxErrorHandler leh)
public Lax(Object handler_, LaxErrorHandler leh)
Method Detail |
public void setErrorHandler(LaxErrorHandler leh)
leh
- gate.util.LaxErrorHandlerpublic LaxErrorHandler getErrorHandler()
public void setValidating(boolean validating)
validating
- booleanpublic boolean getValidating()
public void setNamespacesAware(boolean namespacesAware)
namespacesAware
- booleanpublic boolean getNamespacesAware()
public void addHandler(Object objHandler_)
objHandler_
- java.lang.Objectpublic void characters(char[] caChars, int iStart, int iEnd) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void endElement(String uri, String qName, String sTag) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void parseXmlDocument(File xmlFile)
public void parseXmlDocument(org.xml.sax.InputSource xmlInputSource)
public void parseXmlDocument(InputStream xmlInputStream)
public void parseXmlDocument(String xmlURI)
public void startDocument() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void startElement(String uri, String qName, String sTag, org.xml.sax.Attributes alAttrs)
public void warning(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |