|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 ContentHandlerstartDocument in class DefaultHandlerSAXException - if an error occurs
public void endDocument()
throws SAXException
endDocument method here.
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXException - if an error occurs
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes attr)
throws SAXException
startElement method here.
startElement in interface ContentHandlerstartElement in class DefaultHandlernamespaceURI - a String valuelocalName - a String valueqName - a String valueattr - an Attributes value
SAXException - if an error occurs
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
endElement method here.
endElement in interface ContentHandlerendElement in class DefaultHandlernamespaceURI - a String valuelocalName - a String valueqName - a String value
SAXException - if an error occurs
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters method here.
characters in interface ContentHandlercharacters in class DefaultHandlerch - 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 | ||||||||