Javolution 6.0.0 java
|
Public Member Functions | |
Proxy () | |
void | setDocumentLocator (Locator locator) |
void | startDocument () throws SAXException |
void | endDocument () throws SAXException |
void | startPrefixMapping (CharArray prefix, CharArray uri) throws SAXException |
void | endPrefixMapping (CharArray prefix) throws SAXException |
void | startElement (CharArray namespaceURI, CharArray localName, CharArray qName, javolution.xml.sax.Attributes atts) throws SAXException |
void | endElement (CharArray namespaceURI, CharArray localName, CharArray qName) throws SAXException |
void | characters (char ch[], int start, int length) throws SAXException |
void | ignorableWhitespace (char ch[], int start, int length) throws SAXException |
void | processingInstruction (CharArray target, CharArray data) throws SAXException |
void | skippedEntity (CharArray name) throws SAXException |
int | getLength () |
String | getURI (int index) |
String | getLocalName (int index) |
String | getQName (int index) |
String | getType (int index) |
String | getValue (int index) |
int | getIndex (String uri, String localName) |
int | getIndex (String qName) |
String | getType (String uri, String localName) |
String | getType (String qName) |
String | getValue (String uri, String localName) |
String | getValue (String qName) |
void | startElement (CharArray uri, CharArray localName, CharArray qName, Attributes atts) throws SAXException |
CharArray | getType (CharSequence uri, CharSequence localName) |
CharArray | getType (CharSequence qName) |
CharArray | getValue (CharSequence uri, CharSequence localName) |
CharArray | getValue (CharSequence qName) |
int | getIndex (CharSequence uri, CharSequence localName) |
int | getIndex (CharSequence qName) |
Private Attributes | |
ContentHandler | _sax2Handler = DEFAULT_HANDLER |
javolution.xml.sax.Attributes | _attributes |
This class defines the proxy for content handler and attributes.
Definition at line 161 of file SAX2ReaderImpl.java.
javolution.xml.sax.SAX2ReaderImpl.Proxy.Proxy | ( | ) |
void javolution.xml.sax.SAX2ReaderImpl.Proxy.characters | ( | char | ch[], |
int | start, | ||
int | length | ||
) | throws SAXException |
Receives notification of character data.
ch | the characters from the XML document. |
start | the start position in the array. |
length | the number of characters to read from the array. |
org.xml.sax.SAXException | any SAX exception. |
Implements javolution.xml.sax.ContentHandler.
Definition at line 224 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._sax2Handler, and javolution.xml.sax.ContentHandler.characters().
void javolution.xml.sax.SAX2ReaderImpl.Proxy.endDocument | ( | ) | throws SAXException |
Receives notification of the end of a document.
org.xml.sax.SAXException | any SAX exception. |
Implements javolution.xml.sax.ContentHandler.
Definition at line 191 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._sax2Handler, javolution.xml.sax.SAX2ReaderImpl.DEFAULT_HANDLER, and javolution.xml.sax.ContentHandler.endDocument().
void javolution.xml.sax.SAX2ReaderImpl.Proxy.endElement | ( | CharArray | uri, |
CharArray | localName, | ||
CharArray | qName | ||
) | throws SAXException |
Receives notification of the end of an element.
uri | the namespace URI, or an empty character sequence if the element has no Namespace URI or if namespace processing is not being performed. |
localName | the local name (without prefix), or an empty character sequence if namespace processing is not being performed. |
qName | the qualified XML 1.0 name (with prefix), or an empty character sequence if qualified names are not available. |
org.xml.sax.SAXException | any SAX exception. |
Implements javolution.xml.sax.ContentHandler.
Definition at line 217 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._sax2Handler, and javolution.xml.sax.ContentHandler.endElement().
void javolution.xml.sax.SAX2ReaderImpl.Proxy.endPrefixMapping | ( | CharArray | prefix | ) | throws SAXException |
Ends the scope of a prefix-URI mapping.
prefix | the prefix that was being mapping. |
org.xml.sax.SAXException | any SAX exception. |
Implements javolution.xml.sax.ContentHandler.
Definition at line 203 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._sax2Handler, and javolution.xml.sax.ContentHandler.endPrefixMapping().
|
inherited |
Looks up the index of an attribute by XML 1.0 qualified name (convenience method). This method returns the index of the attribute whose name has the same character content as the specified qName.
qName | the qualified (prefixed) name. |
-1
if it does not appear in the list. Implemented in javolution.xml.internal.stream.AttributesImpl.
|
inherited |
Looks up the index of an attribute by namespace name (convenience method). This method returns the index of the attribute whose uri/localName have the same character content as the specified uri/localName.
uri | the Namespace URI, or an empty character sequence if the name has no Namespace URI. |
localName | the attribute's local name. |
-1
if it does not appear in the list. Implemented in javolution.xml.internal.stream.AttributesImpl.
int javolution.xml.sax.SAX2ReaderImpl.Proxy.getIndex | ( | String | qName | ) |
Definition at line 294 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._attributes, javolution.xml.sax.SAX2ReaderImpl.Proxy.getIndex(), and javolution.xml.sax.SAX2ReaderImpl.toCharSequence().
int javolution.xml.sax.SAX2ReaderImpl.Proxy.getIndex | ( | String | uri, |
String | localName | ||
) |
Definition at line 287 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._attributes, and javolution.xml.sax.SAX2ReaderImpl.toCharSequence().
Referenced by javolution.xml.sax.SAX2ReaderImpl.Proxy.getIndex().
int javolution.xml.sax.SAX2ReaderImpl.Proxy.getLength | ( | ) |
Returns the number of attributes in this list of attributes.
Implements javolution.xml.sax.Attributes.
Definition at line 248 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._attributes, and javolution.xml.sax.Attributes.getLength().
String javolution.xml.sax.SAX2ReaderImpl.Proxy.getLocalName | ( | int | index | ) |
Looks up an attribute's local name by index.
index | the attribute index (zero-based). |
null
if the index is out of range. Implements javolution.xml.sax.Attributes.
Definition at line 260 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._attributes, and javolution.xml.sax.Attributes.getLocalName().
String javolution.xml.sax.SAX2ReaderImpl.Proxy.getQName | ( | int | index | ) |
Looks up an attribute's XML 1.0 qualified name by index.
index | the attribute index (zero-based). |
null
if the index is out of range. Implements javolution.xml.sax.Attributes.
Definition at line 267 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._attributes, and javolution.xml.sax.Attributes.getQName().
|
inherited |
Looks up an attribute's type by XML 1.0 qualified name. This method returns the type of the attribute whose qName has the same character content as the specified qName.
qName | The XML 1.0 qualified name. |
Implemented in javolution.xml.internal.stream.AttributesImpl.
|
inherited |
Looks up an attribute's type by Namespace name (convenience method). This method returns the type of the attribute whose uri/localName have the same character content as the specified uri/localName.
uri | the Namespace URI, or an empty string if the name has no Namespace URI. |
localName | the local name of the attribute. |
Implemented in javolution.xml.internal.stream.AttributesImpl.
String javolution.xml.sax.SAX2ReaderImpl.Proxy.getType | ( | int | index | ) |
Looks up an attribute's type by index.
The attribute type is one of the strings "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION" (always in upper case).
If the parser has not read a declaration for the attribute, or if the parser does not report attribute types, then it must return the value "CDATA" as stated in the XML 1.0 Recommentation (clause 3.3.3, "Attribute-TextBuilder Normalization").
For an enumerated attribute that is not a notation, the parser will report the type as "NMTOKEN".
index | the attribute index (zero-based). |
Implements javolution.xml.sax.Attributes.
Definition at line 274 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._attributes, javolution.xml.sax.Attributes.getType(), and javolution.text.CharArray.toString().
Referenced by javolution.xml.sax.SAX2ReaderImpl.Proxy.getType().
String javolution.xml.sax.SAX2ReaderImpl.Proxy.getType | ( | String | qName | ) |
Definition at line 307 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._attributes, javolution.xml.sax.Attributes.getType(), and javolution.xml.sax.SAX2ReaderImpl.toCharSequence().
String javolution.xml.sax.SAX2ReaderImpl.Proxy.getType | ( | String | uri, |
String | localName | ||
) |
Definition at line 300 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._attributes, javolution.xml.sax.SAX2ReaderImpl.Proxy.getType(), and javolution.xml.sax.SAX2ReaderImpl.toCharSequence().
String javolution.xml.sax.SAX2ReaderImpl.Proxy.getURI | ( | int | index | ) |
Looks up an attribute's Namespace URI by index.
index | the attribute index (zero-based). |
null
if the index is out of range. Implements javolution.xml.sax.Attributes.
Definition at line 253 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._attributes, and javolution.xml.sax.Attributes.getURI().
|
inherited |
Looks up an attribute's value by XML 1.0 qualified name (convenience method). This method returns the value of the attribute whose qName has the same character content as the specified qName.
qName | The XML 1.0 qualified name. |
null
if the attribute is not in the list or if qualified names are not available. Implemented in javolution.xml.internal.stream.AttributesImpl.
|
inherited |
Looks up an attribute's value by Namespace name (convenience method). This method returns the value of the attribute whose uri/localName have the same character content as the specified uri/localName.
uri | the Namespace URI, or the empty string if the name has no Namespace URI. |
localName | the local name of the attribute. |
null
if the attribute is not in the list. Implemented in javolution.xml.internal.stream.AttributesImpl.
String javolution.xml.sax.SAX2ReaderImpl.Proxy.getValue | ( | int | index | ) |
Looks up an attribute's value by index.
If the attribute value is a list of tokens (IDREFS, ENTITIES, or NMTOKENS), the tokens will be concatenated into a single string with each token separated by a single space.
index | the attribute index (zero-based). |
null
if the index is out of range. Implements javolution.xml.sax.Attributes.
Definition at line 280 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._attributes, and javolution.xml.sax.Attributes.getValue().
Referenced by javolution.xml.sax.SAX2ReaderImpl.Proxy.getValue().
String javolution.xml.sax.SAX2ReaderImpl.Proxy.getValue | ( | String | qName | ) |
Definition at line 324 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._attributes, javolution.xml.sax.SAX2ReaderImpl.Proxy.getValue(), and javolution.xml.sax.SAX2ReaderImpl.toCharSequence().
String javolution.xml.sax.SAX2ReaderImpl.Proxy.getValue | ( | String | uri, |
String | localName | ||
) |
Definition at line 313 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._attributes, javolution.xml.sax.Attributes.getValue(), javolution.xml.sax.SAX2ReaderImpl.Proxy.getValue(), and javolution.xml.sax.SAX2ReaderImpl.toCharSequence().
void javolution.xml.sax.SAX2ReaderImpl.Proxy.ignorableWhitespace | ( | char | ch[], |
int | start, | ||
int | length | ||
) | throws SAXException |
Receives notification of ignorable whitespace in element content.
ch | the characters from the XML document. |
start | the start position in the array. |
length | the number of characters to read from the array. |
org.xml.sax.SAXException | any SAX exception. |
Implements javolution.xml.sax.ContentHandler.
Definition at line 230 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._sax2Handler, and javolution.xml.sax.ContentHandler.ignorableWhitespace().
void javolution.xml.sax.SAX2ReaderImpl.Proxy.processingInstruction | ( | CharArray | target, |
CharArray | data | ||
) | throws SAXException |
Receives notification of a processing instruction.
target | the processing instruction target. |
data | the processing instruction data, or null if none was supplied. The data does not include any whitespace separating it from the target. |
org.xml.sax.SAXException | any SAX exception. |
Implements javolution.xml.sax.ContentHandler.
Definition at line 236 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._sax2Handler, and javolution.xml.sax.ContentHandler.processingInstruction().
void javolution.xml.sax.SAX2ReaderImpl.Proxy.setDocumentLocator | ( | Locator | locator | ) |
Receives an object for locating the origin of SAX document events.
locator | the document locator. |
Implements javolution.xml.sax.ContentHandler.
Definition at line 181 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._sax2Handler, and javolution.xml.sax.ContentHandler.setDocumentLocator().
void javolution.xml.sax.SAX2ReaderImpl.Proxy.skippedEntity | ( | CharArray | name | ) | throws SAXException |
Receives notification of a skipped entity.
name | the name of the skipped entity. If it is a parameter entity, the name will begin with '', and if it is the external DTD subset, it will be the character sequence "[dtd]". |
org.xml.sax.SAXException | any SAX exception. |
Implements javolution.xml.sax.ContentHandler.
Definition at line 243 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._sax2Handler, and javolution.xml.sax.ContentHandler.skippedEntity().
void javolution.xml.sax.SAX2ReaderImpl.Proxy.startDocument | ( | ) | throws SAXException |
Receives notification of the beginning of a document.
org.xml.sax.SAXException | any SAX exception. |
Implements javolution.xml.sax.ContentHandler.
Definition at line 186 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._sax2Handler, and javolution.xml.sax.ContentHandler.startDocument().
void javolution.xml.sax.SAX2ReaderImpl.Proxy.startElement | ( | CharArray | namespaceURI, |
CharArray | localName, | ||
CharArray | qName, | ||
javolution.xml.sax.Attributes | atts | ||
) | throws SAXException |
Definition at line 208 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._attributes, javolution.xml.sax.SAX2ReaderImpl.Proxy._sax2Handler, and javolution.xml.sax.ContentHandler.startElement().
|
inherited |
Receives notification of the beginning of an element.
uri | the namespace URI, or an empty character sequence if the element has no Namespace URI or if namespace processing is not being performed. |
localName | the local name (without prefix), or an empty character sequence if namespace processing is not being performed. |
qName | the qualified name (with prefix), or an empty character sequence if qualified names are not available. |
atts | the attributes attached to the element. If there are no attributes, it shall be an empty Attributes object. |
org.xml.sax.SAXException | any SAX exception. |
Implemented in javolution.xml.sax.DefaultHandler.
Referenced by javolution.xml.sax.XMLReaderImpl.parseAll(), and javolution.xml.sax.SAX2ReaderImpl.Proxy.startElement().
void javolution.xml.sax.SAX2ReaderImpl.Proxy.startPrefixMapping | ( | CharArray | prefix, |
CharArray | uri | ||
) | throws SAXException |
Begins the scope of a prefix-URI Namespace mapping.
prefix | the Namespace prefix being declared. |
uri | the namespace URI the prefix is mapped to. |
org.xml.sax.SAXException | any SAX exception. |
Implements javolution.xml.sax.ContentHandler.
Definition at line 197 of file SAX2ReaderImpl.java.
References javolution.xml.sax.SAX2ReaderImpl.Proxy._sax2Handler, and javolution.xml.sax.ContentHandler.startPrefixMapping().
|
private |
Holds the real-time attributes implementation from which attributes values are read.
Definition at line 173 of file SAX2ReaderImpl.java.
Referenced by javolution.xml.sax.SAX2ReaderImpl.Proxy.getIndex(), javolution.xml.sax.SAX2ReaderImpl.Proxy.getLength(), javolution.xml.sax.SAX2ReaderImpl.Proxy.getLocalName(), javolution.xml.sax.SAX2ReaderImpl.Proxy.getQName(), javolution.xml.sax.SAX2ReaderImpl.Proxy.getType(), javolution.xml.sax.SAX2ReaderImpl.Proxy.getURI(), javolution.xml.sax.SAX2ReaderImpl.Proxy.getValue(), and javolution.xml.sax.SAX2ReaderImpl.Proxy.startElement().
|
private |
Holds the SAX2 content handler to which SAX2 events are forwarded.
Definition at line 167 of file SAX2ReaderImpl.java.
Referenced by javolution.xml.sax.SAX2ReaderImpl.Proxy.characters(), javolution.xml.sax.SAX2ReaderImpl.Proxy.endDocument(), javolution.xml.sax.SAX2ReaderImpl.Proxy.endElement(), javolution.xml.sax.SAX2ReaderImpl.Proxy.endPrefixMapping(), javolution.xml.sax.SAX2ReaderImpl.getContentHandler(), javolution.xml.sax.SAX2ReaderImpl.Proxy.ignorableWhitespace(), javolution.xml.sax.SAX2ReaderImpl.Proxy.processingInstruction(), javolution.xml.sax.SAX2ReaderImpl.setContentHandler(), javolution.xml.sax.SAX2ReaderImpl.Proxy.setDocumentLocator(), javolution.xml.sax.SAX2ReaderImpl.Proxy.skippedEntity(), javolution.xml.sax.SAX2ReaderImpl.Proxy.startDocument(), javolution.xml.sax.SAX2ReaderImpl.Proxy.startElement(), and javolution.xml.sax.SAX2ReaderImpl.Proxy.startPrefixMapping().