|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.helpers.DefaultHandler | +--com.chaosserver.bilbo.data.DirectoryHandler
A Sax helper customized to read in the Xml representation of a Directory object.
Field Summary | |
protected Directory |
directory
Holds the directory currently being read in. |
protected FilenameMapping |
filenameMapping
Holds the FilenameMapping currently being read in. |
protected Name |
name
Holds the Name currently being read in. |
Constructor Summary | |
DirectoryHandler()
Default constructor. |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
|
void |
endElement(String uri,
String localName,
String qName)
|
protected Directory |
getDirectory()
Getter for the Directory object generated by this handler. |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Directory directory
protected FilenameMapping filenameMapping
protected Name name
Constructor Detail |
public DirectoryHandler()
Method Detail |
protected Directory getDirectory()
This method should be called after the handler has been used against an Xml document containing a directory.
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |