|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler org.haphazard.XML.CharacterParser
An XML-handler for a character list
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Is called when characters appear inside an element |
void |
endDocument()
This method is called when ending a parse |
void |
endElement(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName)
Is called at the end of parsing an element |
void |
error(org.xml.sax.SAXParseException err)
The function will be called if an error is encountered during parsing. |
void |
fatalError(org.xml.sax.SAXParseException err)
This function is called when an error that is so severe that the parsing cannot continue is encountered. |
static CharacterParser |
getInstance()
Gets an instance of the global skill parser |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Resolves which dtd file to use and creates an inputsource for this. |
void |
setCharacter(Character character)
Sets the place to store all loaded information |
void |
setDocumentLocator(org.xml.sax.Locator loc)
Sets the document locator. |
void |
startDocument()
This method is called when the document is beginning the parse |
void |
startElement(java.lang.String namespaceURI,
java.lang.String lName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
Is called at the start of parsing an element |
void |
warning(org.xml.sax.SAXParseException err)
The function is called if a minor error is encountered during parsing. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, skippedEntity, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static CharacterParser getInstance()
public void setCharacter(Character character)
character
- The character to load intopublic org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
publicId
- The public ID of the XML-filesystemId
- The system ID of the XML file
org.xml.sax.SAXException
- If anything goes wrongpublic void startDocument() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- Here for compatibility issuespublic void startElement(java.lang.String namespaceURI, java.lang.String lName, java.lang.String qName, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
namespaceURI
- The URI of the namespacelName
- The local name (without prefix), or the empty string if
Namespace processing is not being performed.qName
- The qualified name (with prefix), or the empty string if
qualified names are not available.attrs
- The specified or defaulted attributes.
org.xml.sax.SAXException
- If anything goes wrong.public void characters(char[] ch, int start, int length)
ch
- A buffer with charactersstart
- The offset in the bufferlength
- The length of the characterspublic void endElement(java.lang.String namespaceURI, java.lang.String sName, java.lang.String qName) throws org.xml.sax.SAXException
namespaceURI
- The URI of the namespacesName
- The standard name (with namespace)qName
- The qualified name (without namespace)
org.xml.sax.SAXException
- If anything goes wrong.public void endDocument() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- Here for compatability issuespublic void setDocumentLocator(org.xml.sax.Locator loc)
loc
- The locator (see XML-documentation)public void warning(org.xml.sax.SAXParseException err) throws org.xml.sax.SAXException
err
- The error
org.xml.sax.SAXException
- If the error couldn't be handled.public void error(org.xml.sax.SAXParseException err) throws org.xml.sax.SAXException
err
- The error
org.xml.sax.SAXException
- If the error couldn't be handled.public void fatalError(org.xml.sax.SAXParseException err) throws org.xml.sax.SAXException
err
- The error
org.xml.sax.SAXException
- If the error couldn't be handled.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |