|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.HandlerBase | +--de.knup.jedi.jayshare.sax.UserListHandler
SAX Handler for parsing a <userlist>.
Field Summary | |
private FileItem |
currentFile
Current file item to be parsed. |
private OwnedFileList |
currentList
Current file list to be parsed. |
private XTag |
currentXTag
Current x-tag to be parsed. |
private java.lang.StringBuffer |
elementChars
Data buffer. |
private UserList |
userList
<userlist> representing the XML document. |
Constructor Summary | |
UserListHandler()
Create a &tl;userlist> handler instance. |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Buffer data. |
void |
endElement(java.lang.String name)
Receive notification of the end of an element. |
UserList |
getUserList()
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Receive notification of ignorable whitespace in element content. |
void |
startElement(java.lang.String name,
AttributeList attributes)
Receive notification of the start of an element. |
Methods inherited from class org.xml.sax.HandlerBase |
endDocument,
error,
fatalError,
notationDecl,
processingInstruction,
resolveEntity,
setDocumentLocator,
startDocument,
unparsedEntityDecl,
warning |
Methods inherited from class java.lang.Object |
|
Field Detail |
private OwnedFileList currentList
private FileItem currentFile
private XTag currentXTag
private UserList userList
private java.lang.StringBuffer elementChars
Constructor Detail |
public UserListHandler()
Method Detail |
public UserList getUserList()
public void characters(char[] ch, int start, int length) throws SAXException
ch
- The characters.start
- The start position in the character array.length
- The number of characters to use from the
character array.DocumentHandler.characters(char[], int, int)
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
By default, do nothing. Application writers may override this method to take specific actions for each chunk of ignorable whitespace (such as adding data to a node or buffer, or printing it to a file).
ch
- The whitespace characters.start
- The start position in the character array.length
- The number of characters to use from the
character array.DocumentHandler.ignorableWhitespace(char[], int, int)
public void startElement(java.lang.String name, AttributeList attributes) throws SAXException
By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).
name
- The element type name.attributes
- The specified or defaulted attributes.DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)
public void endElement(java.lang.String name) throws SAXException
By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file).
name
- The element type name.attributes
- The specified or defaulted attributes.DocumentHandler.endElement(java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |