APIdia Launch Partner
Top Fields Constructors Methods
jdk.internal.util.xml.impl

public Class SAXParserImpl

extends SAXParser
Class Inheritance
Imports
java.io.IOException, .InputStream, jdk.internal.org.xml.sax.InputSource, .SAXException, .XMLReader, jdk.internal.org.xml.sax.helpers.DefaultHandler, jdk.internal.util.xml.SAXParser

Field Summary

Modifier and TypeField and Description
private ParserSAX

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public XMLReader

Returns:

The XMLReader that is encapsulated by the implementation of this class.
getXMLReader
()

Implements abstract jdk.internal.util.xml.SAXParser.getXMLReader.

Returns the org.xml.sax.XMLReader that is encapsulated by the implementation of this class.

public boolean

Returns:

true if this parser is configured to understand namespaces; false otherwise.
isNamespaceAware
()

Implements abstract jdk.internal.util.xml.SAXParser.isNamespaceAware.

Indicates whether or not this parser is configured to understand namespaces.

public boolean

Returns:

true if this parser is configured to validate XML documents; false otherwise.
isValidating
()

Implements abstract jdk.internal.util.xml.SAXParser.isValidating.

Indicates whether or not this parser is configured to validate XML documents.

public void
parse(InputStream
InputStream containing the content to be parsed.
src
,
DefaultHandler
The SAX DefaultHandler to use.
handler
)

Overrides jdk.internal.util.xml.SAXParser.parse.

Parse the content of the given java.io.InputStream instance as XML using the specified org.xml.sax.helpers.DefaultHandler.

public void
parse(InputSource
The InputSource containing the content to be parsed.
is
,
DefaultHandler
The SAX DefaultHandler to use.
handler
)

Overrides jdk.internal.util.xml.SAXParser.parse.

Parse the content given org.xml.sax.InputSource as XML using the specified org.xml.sax.helpers.DefaultHandler.

Inherited from jdk.internal.util.xml.SAXParser:
isXIncludeAwareparseparse

Field Detail

parserback to summary
private ParserSAX parser

Constructor Detail

SAXParserImplback to summary
public SAXParserImpl()

Method Detail

getXMLReaderback to summary
public XMLReader getXMLReader() throws SAXException

Implements abstract jdk.internal.util.xml.SAXParser.getXMLReader.

Returns the org.xml.sax.XMLReader that is encapsulated by the implementation of this class.

Returns:XMLReader

The XMLReader that is encapsulated by the implementation of this class.

Exceptions
SAXException:
If any SAX errors occur during processing.
isNamespaceAwareback to summary
public boolean isNamespaceAware()

Implements abstract jdk.internal.util.xml.SAXParser.isNamespaceAware.

Indicates whether or not this parser is configured to understand namespaces.

Returns:boolean

true if this parser is configured to understand namespaces; false otherwise.

isValidatingback to summary
public boolean isValidating()

Implements abstract jdk.internal.util.xml.SAXParser.isValidating.

Indicates whether or not this parser is configured to validate XML documents.

Returns:boolean

true if this parser is configured to validate XML documents; false otherwise.

parseback to summary
public void parse(InputStream src, DefaultHandler handler) throws SAXException, IOException

Overrides jdk.internal.util.xml.SAXParser.parse.

Parse the content of the given java.io.InputStream instance as XML using the specified org.xml.sax.helpers.DefaultHandler.

Parameters
src:InputStream

InputStream containing the content to be parsed.

handler:DefaultHandler

The SAX DefaultHandler to use.

Exceptions
SAXException:
If the underlying parser throws a SAXException while parsing.
IOException:
If any IO errors occur.
IllegalArgumentException:
If the given InputStream or handler is null.
See Also
org.xml.sax.helpers.DefaultHandler
parseback to summary
public void parse(InputSource is, DefaultHandler handler) throws SAXException, IOException

Overrides jdk.internal.util.xml.SAXParser.parse.

Parse the content given org.xml.sax.InputSource as XML using the specified org.xml.sax.helpers.DefaultHandler.

Parameters
is:InputSource

The InputSource containing the content to be parsed.

handler:DefaultHandler

The SAX DefaultHandler to use.

Exceptions
SAXException:
If the underlying parser throws a SAXException while parsing.
IOException:
If any IO errors occur.
IllegalArgumentException:
If the InputSource or handler is null.
See Also
org.xml.sax.helpers.DefaultHandler