Deprecated
as a consequence of DocumentHandler being deprecated. See corresponding docs for further information.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | ContentHandlerAdaptor.AttributeListAdapter
Adapt a SAX1 AttributeList as a SAX2 Attributes object. |
| Modifier and Type | Field and Description |
|---|---|
| private final ContentHandlerAdaptor. | |
| private final AttributesImpl | |
| private final ContentHandler | |
| private final String[] | |
| private final boolean | |
| private final NamespaceSupport | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | characters(char[]
An array of characters. ch, int The starting position in the array. start, int The number of characters to use. length)Implements org. |
| public void | |
| public void | endElement(String
The qualified (prefixed) name. qName)Implements org. |
| public void | ignorableWhitespace(char[]
An array of characters. ch, int The starting position in the array. start, int The number of characters to use. length)Implements org. |
| public void | processingInstruction(String
The processing instruction target. target, String The remainder of the processing instruction data)Implements org. |
| private String[] | |
| pack-priv void | |
| public void | setDocumentLocator(Locator
A document locator. locator)Implements org. |
| public void | startDocument()
Implements org. |
| public void | startElement(String
The qualified (prefixed) name. qName, AttributeList The XML 1.0 attribute list (with qnames). qAtts)Implements org.
Deprecated
as a consequence of
Adapt a SAX1 startElement event.
AttributeList being deprecated.
|
| attAdapter | back to summary |
|---|---|
| private final ContentHandlerAdaptor. | |
| atts | back to summary |
|---|---|
| private final AttributesImpl atts | |
| contentHandler | back to summary |
|---|---|
| private final ContentHandler contentHandler | |
| nameParts | back to summary |
|---|---|
| private final String[] nameParts | |
| namespaces | back to summary |
|---|---|
| private final boolean namespaces | |
| nsSupport | back to summary |
|---|---|
| private final NamespaceSupport nsSupport | |
| prefixes | back to summary |
|---|---|
| private final boolean prefixes | |
| ContentHandlerAdaptor | back to summary |
|---|---|
| public ContentHandlerAdaptor(ContentHandler handler) | |
| characters | back to summary |
|---|---|
| public void characters(char[] ch, int start, int length) throws SAXException Implements org. Adapt a SAX1 characters event.
| |
| endDocument | back to summary |
|---|---|
| public void endDocument() throws SAXException Implements org. Adapt a SAX1 end document event.
| |
| endElement | back to summary |
|---|---|
| public void endElement(String qName) throws SAXException Implements org. Adapt a SAX1 end element event.
| |
| ignorableWhitespace | back to summary |
|---|---|
| public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException Implements org. Adapt a SAX1 ignorable whitespace event.
| |
| processingInstruction | back to summary |
|---|---|
| public void processingInstruction(String target, String data) throws SAXException Implements org. Adapt a SAX1 processing instruction event.
| |
| processName | back to summary |
|---|---|
| private String[] processName(String qName, boolean isAttribute) throws SAXException | |
| reportError | back to summary |
|---|---|
| pack-priv void reportError(String message) throws SAXException Report a non-fatal error.
| |
| setDocumentLocator | back to summary |
|---|---|
| public void setDocumentLocator(Locator locator) Implements org. Adapt a SAX1 document locator event.
| |
| startDocument | back to summary |
|---|---|
| public void startDocument() throws SAXException Implements org. Adapt a SAX1 start document event.
| |
| startElement | back to summary |
|---|---|
| public void startElement(String qName, AttributeList qAtts) throws SAXException Implements org. Deprecated as a consequence of Adapt a SAX1 startElement event. If necessary, perform Namespace processing.
| |
This class is in the Public Domain, and comes with NO WARRANTY of any kind.
This wrapper class is used only when Namespace support is disabled -- it provides pretty much a direct mapping from SAX1 to SAX2, except that names and types are interned whenever requested.
| Modifier and Type | Field and Description |
|---|---|
| private AttributeList | qAtts
Deprecated
as a consequence of
AttributeList being deprecated.
|
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: The attributes index, or -1 if none was found.The Namespace URI or the empty string. uri, String The local name. localName)Implements org. |
| public int | Returns: The attributes index, or -1 if none was found.The qualified name. qName)Implements org. |
| public int | Returns: The number of attributes in the list.Implements org. |
| public String | Returns: Always the empty string.attribute's index. i)Implements org. |
| public String | Returns: The attribute's qualified name, internalized.attribute's index. i)Implements org. |
| public String | Returns: The attribute's type as an internalized string.attribute's index. i)Implements org. |
| public String | Returns: The attribute's type as an internalized string.The Namespace URI uri, String The local name. localName)Implements org. |
| public String | Returns: The attribute's type as an internalized string.The qualified name. qName)Implements org. |
| public String | Returns: Always the empty string.attribute's index. i)Implements org. |
| public String | Returns: The attribute's value.attribute's index. i)Implements org. |
| public String | Returns: The attribute's value.The Namespace URI uri, String The local name. localName)Implements org. |
| public String | Returns: The attribute's value.The qualified name. qName)Implements org. |
| pack-priv void | setAttributeList(AttributeList
SAX1 attribute list (with qnames). qAtts)
Deprecated
as a consequence of
Set the embedded AttributeList.
AttributeList being deprecated.
|
| qAtts | back to summary |
|---|---|
| private AttributeList qAtts
Deprecated as a consequence of | |
| AttributeListAdapter | back to summary |
|---|---|
| pack-priv AttributeListAdapter() Construct a new adapter. | |
| getIndex | back to summary |
|---|---|
| public int getIndex(String uri, String localName) Implements org. Look up an attribute index by Namespace name.
| |
| getIndex | back to summary |
|---|---|
| public int getIndex(String qName) Implements org. Look up an attribute index by qualified (prefixed) name.
| |
| getLength | back to summary |
|---|---|
| public int getLength() Implements org. Return the length of the attribute list.
| |
| getLocalName | back to summary |
|---|---|
| public String getLocalName(int i) Implements org. Return the local name of the specified attribute.
| |
| getQName | back to summary |
|---|---|
| public String getQName(int i) Implements org. Return the qualified (prefixed) name of the specified attribute.
| |
| getType | back to summary |
|---|---|
| public String getType(int i) Implements org. Return the type of the specified attribute.
| |
| getType | back to summary |
|---|---|
| public String getType(String uri, String localName) Implements org. Look up the type of an attribute by Namespace name. | |
| getType | back to summary |
|---|---|
| public String getType(String qName) Implements org. Look up the type of an attribute by qualified (prefixed) name. | |
| getURI | back to summary |
|---|---|
| public String getURI(int i) Implements org. Return the Namespace URI of the specified attribute.
| |
| getValue | back to summary |
|---|---|
| public String getValue(int i) Implements org. Return the value of the specified attribute.
| |
| getValue | back to summary |
|---|---|
| public String getValue(String uri, String localName) Implements org. Look up the value of an attribute by Namespace name. | |
| getValue | back to summary |
|---|---|
| public String getValue(String qName) Implements org. Look up the value of an attribute by qualified (prefixed) name. | |
| setAttributeList | back to summary |
|---|---|
| pack-priv void setAttributeList(AttributeList qAtts)
Deprecated as a consequence of Set the embedded AttributeList. This method must be invoked before any of the others can be used.
| |