|
|||||||||
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.QueueHandler
Handles download queue XML parsing.
Field Summary | |
private QueueItem |
currentHash
Current hash item to be parsed. |
private FilehashItem |
currentItem
Current file item to be parsed. |
private java.lang.StringBuffer |
elementChars
Data buffer. |
private DownloadQueue |
queue
Download Queue representation will finally contain the queue. |
Constructor Summary | |
QueueHandler()
Create the QueueHandler. |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Buffer incoming data. |
void |
endElement(java.lang.String name)
Receive notification of the end of an element. |
DownloadQueue |
getQueue()
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Ignore ignorable whitespaces. |
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 DownloadQueue queue
private QueueItem currentHash
private FilehashItem currentItem
private java.lang.StringBuffer elementChars
Constructor Detail |
public QueueHandler()
Method Detail |
public DownloadQueue getQueue()
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
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 |