|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler net.sourceforge.pavlov.user.UserXMLHandler
public final class UserXMLHandler
Loads a User from an XML file.
Constructor Summary | |
---|---|
UserXMLHandler()
|
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
Describe characters method here. |
void |
endDocument()
Describe endDocument method here. |
void |
endElement(String namespaceURI,
String localName,
String qName)
Describe endElement method here. |
User |
getUser()
Return the loaded user |
void |
startDocument()
Describe startDocument method here. |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes attr)
Describe startElement method here. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserXMLHandler()
Method Detail |
---|
public void startDocument() throws SAXException
startDocument
method here.
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
- if an error occurspublic void endDocument() throws SAXException
endDocument
method here.
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
- if an error occurspublic void startElement(String namespaceURI, String localName, String qName, Attributes attr) throws SAXException
startElement
method here.
startElement
in interface ContentHandler
startElement
in class DefaultHandler
namespaceURI
- a String
valuelocalName
- a String
valueqName
- a String
valueattr
- an Attributes
value
SAXException
- if an error occurspublic void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement
method here.
endElement
in interface ContentHandler
endElement
in class DefaultHandler
namespaceURI
- a String
valuelocalName
- a String
valueqName
- a String
value
SAXException
- if an error occurspublic void characters(char[] ch, int start, int length) throws SAXException
characters
method here.
characters
in interface ContentHandler
characters
in class DefaultHandler
ch
- a char[]
valuestart
- an int
valuelength
- an int
value
SAXException
- if an error occurspublic User getUser()
User
value
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |