APIdia Launch Partner
Top Description Inners Fields Constructors Methods
org.xml.sax.helpers

public Class ParserAdapter

extends Object
implements XMLReader, DocumentHandler
Class Inheritance
All Implemented Interfaces
org.xml.sax.DocumentHandler, org.xml.sax.XMLReader
Annotations
@SuppressWarnings:deprecation
Imports
java.io.IOException, java.util.ArrayList, .Enumeration, .List, jdk.xml.internal.SecuritySupport, org.xml.sax.AttributeList, .Attributes, .ContentHandler, .DTDHandler, .DocumentHandler, .EntityResolver, .ErrorHandler, .InputSource, .Locator, .Parser, .SAXException, .SAXNotRecognizedException, .SAXNotSupportedException, .SAXParseException, .XMLReader

References Deprecated

DocumentHandler is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Adapt a SAX1 Parser as a SAX2 XMLReader.

This class wraps a SAX1 Parser and makes it act as a SAX2 XMLReader, with feature, property, and Namespace support. Note that it is not possible to report skippedEntity events, since SAX1 does not make that information available.

This adapter does not test for duplicate Namespace-qualified attribute names.

Author
David Megginson
Since
1.4, SAX 2.0
Version
2.0.1 (sax2r2)
See Also
org.xml.sax.helpers.XMLReaderAdapter, org.xml.sax.XMLReader, org.xml.sax.Parser

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class
ParserAdapter.AttributeListAdapter

Adapt a SAX1 AttributeList as a SAX2 Attributes object.

Field Summary

Modifier and TypeField and Description
private ParserAdapter.AttributeListAdapter
private AttributesImpl
pack-priv ContentHandler
pack-priv DTDHandler
pack-priv EntityResolver
pack-priv ErrorHandler
private static final String
pack-priv Locator
private String[]
private static final String
private static final String
private boolean
private NamespaceSupport
private Parser
parser

References Deprecated Parser is deprecated or references (maybe indirectly) at least one deprecated element.
private boolean
private boolean
private boolean
private static final String

Constructor Summary

AccessConstructor and Description
public
ParserAdapter()

Construct a new parser adapter.

public
ParserAdapter(Parser
The SAX1 parser to embed.
parser
)
References Deprecated Parser is deprecated or references (maybe indirectly) at least one deprecated element.

Construct a new parser adapter.

Method Summary

Modifier and TypeMethod 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.xml.sax.DocumentHandler.characters.

Adapter implementation method; do not call.

private void
checkNotParsing(String
The type of thing (feature or property).
type
,
String
The feature or property name.
name
)

Throw an exception if we are parsing.

public void
endDocument()

Implements org.xml.sax.DocumentHandler.endDocument.

Adapter implementation method; do not call.

public void
endElement(String
The qualified (prefixed) name.
qName
)

Implements org.xml.sax.DocumentHandler.endElement.

Adapter implementation method; do not call.

public ContentHandler

Returns:

The current content handler, or null if none was supplied.
getContentHandler
()

Implements org.xml.sax.XMLReader.getContentHandler.

Return the current content handler.

public DTDHandler

Returns:

the current DTD handler, or null if none was supplied
getDTDHandler
()

Implements org.xml.sax.XMLReader.getDTDHandler.

Return the current DTD handler.

public EntityResolver

Returns:

The current entity resolver, or null if none was supplied.
getEntityResolver
()

Implements org.xml.sax.XMLReader.getEntityResolver.

Return the current entity resolver.

public ErrorHandler

Returns:

The current error handler, or null if none was supplied.
getErrorHandler
()

Implements org.xml.sax.XMLReader.getErrorHandler.

Return the current error handler.

public boolean

Returns:

The current feature value.
getFeature
(String
The feature name, as a complete URI.
name
)

Implements org.xml.sax.XMLReader.getFeature.

Check a parser feature flag.

public Object

Returns:

The property value.
getProperty
(String
The property name.
name
)

Implements org.xml.sax.XMLReader.getProperty.

Get a parser property.

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.xml.sax.DocumentHandler.ignorableWhitespace.

Adapter implementation method; do not call.

private SAXParseException
makeException(String
The error message.
message
)

Construct an exception for the current context.

public void
parse(String
The absolute URL of the document.
systemId
)

Implements org.xml.sax.XMLReader.parse.

Parse an XML document.

public void
parse(InputSource
An input source for the document.
input
)

Implements org.xml.sax.XMLReader.parse.

Parse an XML document.

public void
processingInstruction(String
The processing instruction target.
target
,
String
The remainder of the processing instruction
data
)

Implements org.xml.sax.DocumentHandler.processingInstruction.

Adapter implementation method; do not call.

private String[]

Returns:

The name split into three parts.
processName
(String
The qualified (prefixed) name.
qName
,
boolean
true if this is an attribute name.
isAttribute
,
boolean useException)

Process a qualified (prefixed) name.

pack-priv void
reportError(String
The error message.
message
)

Report a non-fatal error.

public void
setContentHandler(ContentHandler
the new content handler
handler
)

Implements org.xml.sax.XMLReader.setContentHandler.

Set the content handler.

public void
setDocumentLocator(Locator
A document locator.
locator
)

Implements org.xml.sax.DocumentHandler.setDocumentLocator.

Adapter implementation method; do not call.

public void
setDTDHandler(DTDHandler
the new DTD handler
handler
)

Implements org.xml.sax.XMLReader.setDTDHandler.

Set the DTD handler.

public void
setEntityResolver(EntityResolver
The new entity resolver.
resolver
)

Implements org.xml.sax.XMLReader.setEntityResolver.

Set the entity resolver.

public void
setErrorHandler(ErrorHandler
The new error handler.
handler
)

Implements org.xml.sax.XMLReader.setErrorHandler.

Set the error handler.

public void
setFeature(String
The feature name, as a complete URI.
name
,
boolean
The requested feature value.
value
)

Implements org.xml.sax.XMLReader.setFeature.

Set a feature flag for the parser.

public void
setProperty(String
The property name.
name
,
Object
The property value.
value
)

Implements org.xml.sax.XMLReader.setProperty.

Set a parser property.

private void
setup(Parser
The embedded parser.
parser
)
References Deprecated Parser is deprecated or references (maybe indirectly) at least one deprecated element.

Internal setup method.

private void
setupParser()

Initialize the parser before each run.

public void
startDocument()

Implements org.xml.sax.DocumentHandler.startDocument.

Adapter implementation method; do not call.

public void
startElement(String
The qualified (prefixed) name.
qName
,
AttributeList
The XML attribute list (with qnames).
qAtts
)

Implements org.xml.sax.DocumentHandler.startElement.

References Deprecated AttributeList is deprecated or references (maybe indirectly) at least one deprecated element.

Adapter implementation method; do not call.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attAdapterback to summary
private ParserAdapter.AttributeListAdapter attAdapter
attsback to summary
private AttributesImpl atts
contentHandlerback to summary
pack-priv ContentHandler contentHandler
dtdHandlerback to summary
pack-priv DTDHandler dtdHandler
entityResolverback to summary
pack-priv EntityResolver entityResolver
errorHandlerback to summary
pack-priv ErrorHandler errorHandler
FEATURESback to summary
private static final String FEATURES
locatorback to summary
pack-priv Locator locator
namePartsback to summary
private String[] nameParts
NAMESPACE_PREFIXESback to summary
private static final String NAMESPACE_PREFIXES
NAMESPACESback to summary
private static final String NAMESPACES
namespacesback to summary
private boolean namespaces
nsSupportback to summary
private NamespaceSupport nsSupport
parserback to summary
private Parser parser

References Deprecated

Parser is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

parsingback to summary
private boolean parsing
prefixesback to summary
private boolean prefixes
urisback to summary
private boolean uris
XMLNS_URIsback to summary
private static final String XMLNS_URIs

Constructor Detail

ParserAdapterback to summary
public ParserAdapter() throws SAXException

Construct a new parser adapter.

Use the "org.xml.sax.parser" property to locate the embedded SAX1 driver.

Exceptions
SAXException:
If the embedded driver cannot be instantiated or if the org.xml.sax.parser property is not specified.
ParserAdapterback to summary
public ParserAdapter(Parser parser)

References Deprecated

Parser is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Construct a new parser adapter.

Note that the embedded parser cannot be changed once the adapter is created; to embed a different parser, allocate a new ParserAdapter.

Parameters
parser:Parser

The SAX1 parser to embed.

Exceptions
NullPointerException:
If the parser parameter is null.

Method Detail

charactersback to summary
public void characters(char[] ch, int start, int length) throws SAXException

Implements org.xml.sax.DocumentHandler.characters.

Adapter implementation method; do not call. Adapt a SAX1 characters event.

Parameters
ch:char[]

An array of characters.

start:int

The starting position in the array.

length:int

The number of characters to use.

Exceptions
SAXException:
The client may raise a processing exception.
See Also
org.xml.sax.DocumentHandler#characters
checkNotParsingback to summary
private void checkNotParsing(String type, String name) throws SAXNotSupportedException

Throw an exception if we are parsing.

Use this method to detect illegal feature or property changes.

Parameters
type:String

The type of thing (feature or property).

name:String

The feature or property name.

Exceptions
SAXNotSupportedException:
If a document is currently being parsed.
endDocumentback to summary
public void endDocument() throws SAXException

Implements org.xml.sax.DocumentHandler.endDocument.

Adapter implementation method; do not call. Adapt a SAX1 end document event.

Exceptions
SAXException:
The client may raise a processing exception.
See Also
org.xml.sax.DocumentHandler#endDocument
endElementback to summary
public void endElement(String qName) throws SAXException

Implements org.xml.sax.DocumentHandler.endElement.

Adapter implementation method; do not call. Adapt a SAX1 end element event.

Parameters
qName:String

The qualified (prefixed) name.

Exceptions
SAXException:
The client may raise a processing exception.
See Also
org.xml.sax.DocumentHandler#endElement
getContentHandlerback to summary
public ContentHandler getContentHandler()

Implements org.xml.sax.XMLReader.getContentHandler.

Return the current content handler.

Returns:ContentHandler

The current content handler, or null if none was supplied.

See Also
org.xml.sax.XMLReader#getEntityResolver
getDTDHandlerback to summary
public DTDHandler getDTDHandler()

Implements org.xml.sax.XMLReader.getDTDHandler.

Return the current DTD handler.

Returns:DTDHandler

the current DTD handler, or null if none was supplied

See Also
org.xml.sax.XMLReader#getEntityResolver
getEntityResolverback to summary
public EntityResolver getEntityResolver()

Implements org.xml.sax.XMLReader.getEntityResolver.

Return the current entity resolver.

Returns:EntityResolver

The current entity resolver, or null if none was supplied.

See Also
org.xml.sax.XMLReader#getEntityResolver
getErrorHandlerback to summary
public ErrorHandler getErrorHandler()

Implements org.xml.sax.XMLReader.getErrorHandler.

Return the current error handler.

Returns:ErrorHandler

The current error handler, or null if none was supplied.

See Also
org.xml.sax.XMLReader#getEntityResolver
getFeatureback to summary
public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException

Implements org.xml.sax.XMLReader.getFeature.

Check a parser feature flag.

The only features recognized are namespaces and namespace-prefixes.

Parameters
name:String

The feature name, as a complete URI.

Returns:boolean

The current feature value.

Exceptions
SAXNotRecognizedException:
If the feature value can't be assigned or retrieved.
SAXNotSupportedException:
If the feature is not currently readable.
See Also
org.xml.sax.XMLReader#setFeature
getPropertyback to summary
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException

Implements org.xml.sax.XMLReader.getProperty.

Get a parser property.

No properties are currently recognized.

Parameters
name:String

The property name.

Returns:Object

The property value.

Exceptions
SAXNotRecognizedException:
If the property value can't be assigned or retrieved.
SAXNotSupportedException:
If the property value is not currently readable.
See Also
org.xml.sax.XMLReader#getProperty
ignorableWhitespaceback to summary
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException

Implements org.xml.sax.DocumentHandler.ignorableWhitespace.

Adapter implementation method; do not call. Adapt a SAX1 ignorable whitespace event.

Parameters
ch:char[]

An array of characters.

start:int

The starting position in the array.

length:int

The number of characters to use.

Exceptions
SAXException:
The client may raise a processing exception.
See Also
org.xml.sax.DocumentHandler#ignorableWhitespace
makeExceptionback to summary
private SAXParseException makeException(String message)

Construct an exception for the current context.

Parameters
message:String

The error message.

parseback to summary
public void parse(String systemId) throws IOException, SAXException

Implements org.xml.sax.XMLReader.parse.

Parse an XML document.

Parameters
systemId:String

The absolute URL of the document.

Exceptions
IOException:
If there is a problem reading the raw content of the document.
SAXException:
If there is a problem processing the document.
See Also
parse(org.xml.sax.InputSource), org.xml.sax.Parser#parse(java.lang.String)
parseback to summary
public void parse(InputSource input) throws IOException, SAXException

Implements org.xml.sax.XMLReader.parse.

Parse an XML document.

Parameters
input:InputSource

An input source for the document.

Exceptions
IOException:
If there is a problem reading the raw content of the document.
SAXException:
If there is a problem processing the document.
See Also
parse(java.lang.String), org.xml.sax.Parser#parse(org.xml.sax.InputSource)
processingInstructionback to summary
public void processingInstruction(String target, String data) throws SAXException

Implements org.xml.sax.DocumentHandler.processingInstruction.

Adapter implementation method; do not call. Adapt a SAX1 processing instruction event.

Parameters
target:String

The processing instruction target.

data:String

The remainder of the processing instruction

Exceptions
SAXException:
The client may raise a processing exception.
See Also
org.xml.sax.DocumentHandler#processingInstruction
processNameback to summary
private String[] processName(String qName, boolean isAttribute, boolean useException) throws SAXException

Process a qualified (prefixed) name.

If the name has an undeclared prefix, use only the qname and make an ErrorHandler.error callback in case the app is interested.

Parameters
qName:String

The qualified (prefixed) name.

isAttribute:boolean

true if this is an attribute name.

Returns:String[]

The name split into three parts.

Exceptions
SAXException:
The client may throw an exception if there is an error callback.
reportErrorback to summary
pack-priv void reportError(String message) throws SAXException

Report a non-fatal error.

Parameters
message:String

The error message.

Exceptions
SAXException:
The client may throw an exception.
setContentHandlerback to summary
public void setContentHandler(ContentHandler handler)

Implements org.xml.sax.XMLReader.setContentHandler.

Set the content handler.

Parameters
handler:ContentHandler

the new content handler

See Also
org.xml.sax.XMLReader#setEntityResolver
setDocumentLocatorback to summary
public void setDocumentLocator(Locator locator)

Implements org.xml.sax.DocumentHandler.setDocumentLocator.

Adapter implementation method; do not call. Adapt a SAX1 document locator event.

Parameters
locator:Locator

A document locator.

See Also
org.xml.sax.ContentHandler#setDocumentLocator
setDTDHandlerback to summary
public void setDTDHandler(DTDHandler handler)

Implements org.xml.sax.XMLReader.setDTDHandler.

Set the DTD handler.

Parameters
handler:DTDHandler

the new DTD handler

See Also
org.xml.sax.XMLReader#setEntityResolver
setEntityResolverback to summary
public void setEntityResolver(EntityResolver resolver)

Implements org.xml.sax.XMLReader.setEntityResolver.

Set the entity resolver.

Parameters
resolver:EntityResolver

The new entity resolver.

See Also
org.xml.sax.XMLReader#setEntityResolver
setErrorHandlerback to summary
public void setErrorHandler(ErrorHandler handler)

Implements org.xml.sax.XMLReader.setErrorHandler.

Set the error handler.

Parameters
handler:ErrorHandler

The new error handler.

See Also
org.xml.sax.XMLReader#setEntityResolver
setFeatureback to summary
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException

Implements org.xml.sax.XMLReader.setFeature.

Set a feature flag for the parser.

The only features recognized are namespaces and namespace-prefixes.

Parameters
name:String

The feature name, as a complete URI.

value:boolean

The requested feature value.

Exceptions
SAXNotRecognizedException:
If the feature can't be assigned or retrieved.
SAXNotSupportedException:
If the feature can't be assigned that value.
See Also
org.xml.sax.XMLReader#setFeature
setPropertyback to summary
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException

Implements org.xml.sax.XMLReader.setProperty.

Set a parser property.

No properties are currently recognized.

Parameters
name:String

The property name.

value:Object

The property value.

Exceptions
SAXNotRecognizedException:
If the property value can't be assigned or retrieved.
SAXNotSupportedException:
If the property can't be assigned that value.
See Also
org.xml.sax.XMLReader#setProperty
setupback to summary
private void setup(Parser parser)

References Deprecated

Parser is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Internal setup method.

Parameters
parser:Parser

The embedded parser.

Exceptions
NullPointerException:
If the parser parameter is null.
setupParserback to summary
private void setupParser()

Initialize the parser before each run.

startDocumentback to summary
public void startDocument() throws SAXException

Implements org.xml.sax.DocumentHandler.startDocument.

Adapter implementation method; do not call. Adapt a SAX1 start document event.

Exceptions
SAXException:
The client may raise a processing exception.
See Also
org.xml.sax.DocumentHandler#startDocument
startElementback to summary
public void startElement(String qName, AttributeList qAtts) throws SAXException

Implements org.xml.sax.DocumentHandler.startElement.

References Deprecated

AttributeList is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Adapter implementation method; do not call. Adapt a SAX1 startElement event.

If necessary, perform Namespace processing.

Parameters
qName:String

The qualified (prefixed) name.

qAtts:AttributeList

The XML attribute list (with qnames).

Exceptions
SAXException:
The client may raise a processing exception.
org.xml.sax.helpers back to summary

pack-priv final Class ParserAdapter.AttributeListAdapter

extends Object
implements Attributes
Class Inheritance
All Implemented Interfaces
org.xml.sax.Attributes

Adapt a SAX1 AttributeList as a SAX2 Attributes object.

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.

Field Summary

Modifier and TypeField and Description
private AttributeList
qAtts

References Deprecated AttributeList is deprecated or references (maybe indirectly) at least one deprecated element.

Constructor Summary

AccessConstructor and Description
pack-priv
AttributeListAdapter()

Construct a new adapter.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The attributes index, or -1 if none was found.
getIndex
(String
The Namespace URI or the empty string.
uri
,
String
The local name.
localName
)

Implements org.xml.sax.Attributes.getIndex.

Look up an attribute index by Namespace name.

public int

Returns:

The attributes index, or -1 if none was found.
getIndex
(String
The qualified name.
qName
)

Implements org.xml.sax.Attributes.getIndex.

Look up an attribute index by qualified (prefixed) name.

public int

Returns:

The number of attributes in the list.
getLength
()

Implements org.xml.sax.Attributes.getLength.

Return the length of the attribute list.

public String

Returns:

Always the empty string.
getLocalName
(int i)

Implements org.xml.sax.Attributes.getLocalName.

Return the local name of the specified attribute.

public String

Returns:

The attribute's qualified name, internalized.
getQName
(int i)

Implements org.xml.sax.Attributes.getQName.

Return the qualified (prefixed) name of the specified attribute.

public String

Returns:

The attribute's type as an internalized string.
getType
(int i)

Implements org.xml.sax.Attributes.getType.

Return the type of the specified attribute.

public String

Returns:

The attribute's type as an internalized string.
getType
(String
The Namespace URI
uri
,
String
The local name.
localName
)

Implements org.xml.sax.Attributes.getType.

Look up the type of an attribute by Namespace name.

public String

Returns:

The attribute's type as an internalized string.
getType
(String
The qualified name.
qName
)

Implements org.xml.sax.Attributes.getType.

Look up the type of an attribute by qualified (prefixed) name.

public String

Returns:

Always the empty string.
getURI
(int i)

Implements org.xml.sax.Attributes.getURI.

Return the Namespace URI of the specified attribute.

public String

Returns:

The attribute's value.
getValue
(int i)

Implements org.xml.sax.Attributes.getValue.

Return the value of the specified attribute.

public String

Returns:

The attribute's value.
getValue
(String
The Namespace URI
uri
,
String
The local name.
localName
)

Implements org.xml.sax.Attributes.getValue.

Look up the value of an attribute by Namespace name.

public String

Returns:

The attribute's value.
getValue
(String
The qualified name.
qName
)

Implements org.xml.sax.Attributes.getValue.

Look up the value of an attribute by qualified (prefixed) name.

pack-priv void
setAttributeList(AttributeList qAtts)
References Deprecated AttributeList is deprecated or references (maybe indirectly) at least one deprecated element.

Set the embedded AttributeList.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

qAttsback to summary
private AttributeList qAtts

References Deprecated

AttributeList is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Constructor Detail

AttributeListAdapterback to summary
pack-priv AttributeListAdapter()

Construct a new adapter.

Method Detail

getIndexback to summary
public int getIndex(String uri, String localName)

Implements org.xml.sax.Attributes.getIndex.

Look up an attribute index by Namespace name.

Parameters
uri:String

The Namespace URI or the empty string.

localName:String

The local name.

Returns:int

The attributes index, or -1 if none was found.

See Also
org.xml.sax.Attributes#getIndex(java.lang.String, java.lang.String)
getIndexback to summary
public int getIndex(String qName)

Implements org.xml.sax.Attributes.getIndex.

Look up an attribute index by qualified (prefixed) name.

Parameters
qName:String

The qualified name.

Returns:int

The attributes index, or -1 if none was found.

See Also
org.xml.sax.Attributes#getIndex(java.lang.String)
getLengthback to summary
public int getLength()

Implements org.xml.sax.Attributes.getLength.

Return the length of the attribute list.

Returns:int

The number of attributes in the list.

See Also
org.xml.sax.Attributes#getLength
getLocalNameback to summary
public String getLocalName(int i)

Implements org.xml.sax.Attributes.getLocalName.

Return the local name of the specified attribute.

Returns:String

Always the empty string.

See Also
org.xml.sax.Attributes#getLocalName
getQNameback to summary
public String getQName(int i)

Implements org.xml.sax.Attributes.getQName.

Return the qualified (prefixed) name of the specified attribute.

Returns:String

The attribute's qualified name, internalized.

getTypeback to summary
public String getType(int i)

Implements org.xml.sax.Attributes.getType.

Return the type of the specified attribute.

Returns:String

The attribute's type as an internalized string.

getTypeback to summary
public String getType(String uri, String localName)

Implements org.xml.sax.Attributes.getType.

Look up the type of an attribute by Namespace name.

Parameters
uri:String

The Namespace URI

localName:String

The local name.

Returns:String

The attribute's type as an internalized string.

getTypeback to summary
public String getType(String qName)

Implements org.xml.sax.Attributes.getType.

Look up the type of an attribute by qualified (prefixed) name.

Parameters
qName:String

The qualified name.

Returns:String

The attribute's type as an internalized string.

getURIback to summary
public String getURI(int i)

Implements org.xml.sax.Attributes.getURI.

Return the Namespace URI of the specified attribute.

Returns:String

Always the empty string.

See Also
org.xml.sax.Attributes#getURI
getValueback to summary
public String getValue(int i)

Implements org.xml.sax.Attributes.getValue.

Return the value of the specified attribute.

Returns:String

The attribute's value.

getValueback to summary
public String getValue(String uri, String localName)

Implements org.xml.sax.Attributes.getValue.

Look up the value of an attribute by Namespace name.

Parameters
uri:String

The Namespace URI

localName:String

The local name.

Returns:String

The attribute's value.

getValueback to summary
public String getValue(String qName)

Implements org.xml.sax.Attributes.getValue.

Look up the value of an attribute by qualified (prefixed) name.

Parameters
qName:String

The qualified name.

Returns:String

The attribute's value.

setAttributeListback to summary
pack-priv void setAttributeList(AttributeList qAtts)

References Deprecated

AttributeList is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Set the embedded AttributeList.

This method must be invoked before any of the others can be used.