References Deprecated
Parser is deprecated or references (maybe indirectly) at least one deprecated element.
See corresponding docs for further information.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | WstxSAXParser.
References Deprecated
AttributeList is deprecated or references (maybe indirectly) at least one deprecated element.
|
| pack-priv static class | |
| pack-priv class | WstxSAXParser.
Simple helper class that converts from Stax API into SAX EntityResolver call(s) |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final boolean | |
| protected AttributeCollector | |
| protected int | mAttrCount
Number of attributes accessible via |
| protected final ReaderConfig | |
| protected ContentHandler | |
| protected DeclHandler | |
| protected DTDHandler | |
| protected InputElementStack | |
| protected String | |
| protected EntityResolver | |
| protected ErrorHandler | |
| protected boolean | |
| protected LexicalHandler | |
| protected int | mNsCount
Need to keep track of number of namespaces, if namespace declarations
are to be reported along with attributes (see
|
| protected BasicStreamReader | mScanner
Since the stream reader would mostly be just a wrapper around the underlying scanner (its main job is to implement Stax interface), we can and should just use the scanner. |
| protected boolean | |
| protected final WstxInputFactory | mStaxFactory
We will need the factory reference mostly for constructing underlying stream reader we use. |
| protected String |
| Access | Constructor and Description |
|---|---|
| public | WstxSAXParser(WstxInputFactory sf, boolean nsPrefixes)
Note this was a protected constructor for versions 4.0 and 3.2; changed to public in 4.1 |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | attributeDecl(String eName, String aName, String type, String mode, String value)
Implements com.
|
| public void | dtdComment(char[] data, int offset, int len)
Implements com.
|
| public void | dtdElementDecl(String name, String model)
Implements com.
|
| public void | dtdExternalEntityDecl(String name, String publicId, String systemId)
Implements com.
|
| public void | dtdInternalEntityDecl(String name, String value)
Implements com.
|
| public void | dtdNotationDecl(String name, String publicId, String systemId, URL baseURL)
Implements com.
|
| public void | dtdProcessingInstruction(String target, String data)
Implements com.
|
| public boolean | |
| public void | |
| public void | dtdUnparsedEntityDecl(String name, String publicId, String systemId, String notationName, URL baseURL)
Implements com.
|
| private final void | |
| private final void | fireEvents()
This is the actual "tight event loop" that will send all events between start and end document events. |
| private final void | |
| public int | getColumnNumber()
Implements org. Return the column number where the current document event ends. |
| public ContentHandler | getContentHandler()
Implements org. Return the current content handler. |
| public DTDHandler | |
| public String | getEncoding()
Implements org. Returns the name of the character encoding for the entity. |
| public EntityResolver | getEntityResolver()
Implements org. Return the current entity resolver. |
| public ErrorHandler | getErrorHandler()
Implements org. Return the current error handler. |
| public boolean | getFeature(String
The feature name, which is a fully-qualified URI. name)Implements org. Look up the value of a feature flag. |
| public int | getIndex(String
The qualified (prefixed) name. qName)Implements org. Look up the index of an attribute by XML qualified (prefixed) name. |
| public int | getIndex(String
The Namespace URI, or the empty string if
the name has no Namespace URI. uri, String The attribute's local name. localName)Implements org. Look up the index of an attribute by Namespace name. |
| public int | getLength()
Implements org. Return the number of attributes in the list. |
| public int | getLineNumber()
Implements org. Return the line number where the current document event ends. |
| public String | getLocalName(int
The attribute index (zero-based). index)Implements org. Look up an attribute's local name by index. |
| public final Parser | getParser()
Implements abstract javax.
References Deprecated
Parser is deprecated or references (maybe indirectly) at least one deprecated element.
Returns the SAX parser that is encapsulated by the implementation of this class. |
| public Object | getProperty(String
The property name, which is a fully-qualified URI. name)Implements abstract javax. Implements org. Look up the value of a property. |
| public String | getPublicId()
Implements org. Return the public identifier for the current document event. |
| public String | getQName(int
The attribute index (zero-based). index)Implements org. Look up an attribute's XML qualified (prefixed) name by index. |
| public final ReaderConfig | getStaxConfig()
Accessor used to allow configuring all standard Stax configuration settings that the underlying reader uses. |
| public String | getSystemId()
Implements org. Return the system identifier for the current document event. |
| public String | getType(int
The attribute index (zero-based). index)Implements org. Look up an attribute's type by index. |
| public String | getType(String
The XML qualified name. qName)Implements org. Look up an attribute's type by XML qualified (prefixed) name. |
| public String | getType(String
The Namespace URI, or the empty String if the
name has no Namespace URI. uri, String The local name of the attribute. localName)Implements org. Look up an attribute's type by Namespace name. |
| public String | getURI(int
The attribute index (zero-based). index)Implements org. Look up an attribute's Namespace URI by index. |
| public String | getValue(int
The attribute index (zero-based). index)Implements org. Look up an attribute's value by index. |
| public String | getValue(String
The XML qualified name. qName)Implements org. Look up an attribute's value by XML qualified (prefixed) name. |
| public String | getValue(String
The Namespace URI, or the empty String if the
name has no Namespace URI. uri, String The local name of the attribute. localName)Implements org. Look up an attribute's value by Namespace name. |
| public final XMLReader | getXMLReader()
Implements abstract javax. Returns the |
| public String | getXMLVersion()
Implements org. Returns the version of XML used for the entity. |
| public boolean | isDeclared(int
The attribute index (zero-based). index)Implements org. Returns false unless the attribute was declared in the DTD. |
| public boolean | isDeclared(String
The XML qualified (prefixed) name. qName)Implements org. Returns false unless the attribute was declared in the DTD. |
| public boolean | isDeclared(String
The Namespace URI, or the empty string if
the name has no Namespace URI. uri, String The attribute's local name. localName)Implements org. Returns false unless the attribute was declared in the DTD. |
| public boolean | isNamespaceAware()
Implements abstract javax. Indicates whether or not this parser is configured to understand namespaces. |
| public boolean | isSpecified(int
The attribute index (zero-based). index)Implements org. Returns true unless the attribute value was provided by DTD defaulting. |
| public boolean | isSpecified(String
The XML qualified (prefixed) name. qName)Implements org. Returns true unless the attribute value was provided by DTD defaulting. |
| public boolean | isSpecified(String
The Namespace URI, or the empty string if
the name has no Namespace URI. uri, String The attribute's local name. localName)Implements org. Returns true unless the attribute value was provided by DTD defaulting. |
| public boolean | isValidating()
Implements abstract javax. Indicates whether or not this parser is configured to validate XML documents. |
| public void | parse(InputSource
The InputSource containing the content to be parsed. is, HandlerBase The SAX HandlerBase to use. hb)Overrides javax.
References Deprecated
HandlerBase is deprecated or references (maybe indirectly) at least one deprecated element.
Parse the content given |
| public void | parse(InputSource
The InputSource containing the content to be parsed. is, DefaultHandler The SAX DefaultHandler to use. dh)Overrides javax. Parse the content given |
| public void | parse(InputSource
The input source for the top-level of the
XML document. input)Implements org. Parse an XML document. |
| public void | parse(String
The system identifier (URI). systemId)Implements org. Parse an XML document from a system identifier (URI). |
| public void | setContentHandler(ContentHandler
The content handler. handler)Implements org. Allow an application to register a content event handler. |
| public void | setDocumentHandler(DocumentHandler
The document handler. handler)Implements org.
References Deprecated
DocumentHandler is deprecated or references (maybe indirectly) at least one deprecated element.
Allow an application to register a document event handler. |
| public void | setDTDHandler(DTDHandler
The DTD handler. handler)Implements org. Allow an application to register a DTD event handler. |
| public void | setEntityResolver(EntityResolver
The object for resolving entities. resolver)Implements org. Allow an application to register a custom entity resolver. |
| public void | setErrorHandler(ErrorHandler
The error handler. handler)Implements org. Allow an application to register an error event handler. |
| public void | setFeature(String
The feature name, which is a fully-qualified URI. name, boolean The requested value of the feature (true or false). value)Implements org. Set the value of a feature flag. |
| public void | setLocale(Locale
A Java Locale object. locale)Implements org. Allow an application to request a locale for errors and warnings. |
| public void | setProperty(String
The property name, which is a fully-qualified URI. name, Object The requested value for the property. value)Implements abstract javax. Implements org. Set the value of a property. |
| private void | |
| private void | |
| private void |