|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
no.feide.moria.servlet.AttribsHandler
public class AttribsHandler
Field Summary | |
---|---|
private java.util.HashMap |
adata
Hash map of parsed attributes. |
private AttribsData |
currentattribute
The attribute being parsed. |
private java.lang.String |
currentchars
String value of current attribute. |
private int |
indexcounter
Attribute's number. |
Constructor Summary | |
---|---|
AttribsHandler()
Constructor. |
Method Summary | |
---|---|
void |
characters(char[] buf,
int offset,
int len)
Implements callback that is called to process data for an element. |
void |
endDocument()
Implements callback that is called at end of document. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName)
Implements callback that is called at end of an xml element. |
java.util.HashMap |
getAttribs()
Gets parsed attributes. |
void |
startDocument()
Implements callback that is called at start of document. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
Implements callback that is called at start of an xml element. |
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 |
Field Detail |
---|
private java.util.HashMap adata
private AttribsData currentattribute
private java.lang.String currentchars
private int indexcounter
Constructor Detail |
---|
public AttribsHandler()
Method Detail |
---|
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
- Required by interface.public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
- Required by interface.public final void startElement(java.lang.String namespaceURI, java.lang.String sName, java.lang.String qName, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
namespaceURI
- Namespace URI.sName
- The local name (without prefix), or the empty string if Namespace processing is not being performed.qName
- The qualified name (with prefix), or the empty string if qualified names are not available.attrs
- The specified or defaulted attributes.
org.xml.sax.SAXException
- Required by interface.for information about the parameters
public final void endElement(java.lang.String namespaceURI, java.lang.String sName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
namespaceURI
- Namespace URI.sName
- The local name (without prefix), or the empty string if Namespace processing is not being performed.qName
- The qualified XML 1.0 name (with prefix), or the empty string if qualified names are not available.
org.xml.sax.SAXException
- Required by interface.for information about the parameters
public final void characters(char[] buf, int offset, int len) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
buf
- The characters.offset
- The start position in the character array.len
- The number of characters to use from the character array.
org.xml.sax.SAXException
- Required by interface.for information about the parameters
public final java.util.HashMap getAttribs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |