Top Description Inners Fields Constructors Methods
com.sun.xml.xsom.impl.parser

public Class SAXParserFactoryAdaptor

extends SAXParserFactory
Class Inheritance
Annotations
@Deprecated
Imports
com.sun.xml.xsom.parser.XMLParser, org.xml.sax.InputSource, .SAXException, .XMLReader, org.xml.sax.helpers.XMLFilterImpl, .XMLReaderAdapter, javax.xml.parsers.ParserConfigurationException, .SAXParser, .SAXParserFactory, java.io.IOException

Deprecated

SAXParserFactory implementation that ultimately uses XMLParser to parse documents.
Author
Kohsuke Kawaguchi ([email protected])

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
private class

Field Summary

Modifier and TypeField and Description
private final XMLParser

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
getFeature(String name)

Implements abstract javax.xml.parsers.SAXParserFactory.getFeature.

Returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.

public SAXParser
newSAXParser()

Implements abstract javax.xml.parsers.SAXParserFactory.newSAXParser.

Creates a new instance of a SAXParser using the currently configured factory parameters.

public void
setFeature(String name, boolean value)

Implements abstract javax.xml.parsers.SAXParserFactory.setFeature.

Sets the particular feature in the underlying implementation of org.xml.sax.XMLReader.

Inherited from javax.xml.parsers.SAXParserFactory:
getSchemaisNamespaceAwareisValidatingisXIncludeAwarenewDefaultInstancenewDefaultNSInstancenewInstancenewInstancenewNSInstancenewNSInstancesetNamespaceAwaresetSchemasetValidatingsetXIncludeAware

Field Detail

parserback to summary
private final XMLParser parser

Constructor Detail

SAXParserFactoryAdaptorback to summary
public SAXParserFactoryAdaptor(XMLParser _parser)

Method Detail

getFeatureback to summary
public boolean getFeature(String name)

Implements abstract javax.xml.parsers.SAXParserFactory.getFeature.

Doc from javax.xml.parsers.SAXParserFactory.getFeature.

Returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.

newSAXParserback to summary
public SAXParser newSAXParser() throws ParserConfigurationException, SAXException

Implements abstract javax.xml.parsers.SAXParserFactory.newSAXParser.

Doc from javax.xml.parsers.SAXParserFactory.newSAXParser.

Creates a new instance of a SAXParser using the currently configured factory parameters.

Exceptions
ParserConfigurationException:
if a parser cannot be created which satisfies the requested configuration.
SAXException:
for SAX errors.
setFeatureback to summary
public void setFeature(String name, boolean value)

Implements abstract javax.xml.parsers.SAXParserFactory.setFeature.

Doc from javax.xml.parsers.SAXParserFactory.setFeature.

Sets the particular feature in the underlying implementation of org.xml.sax.XMLReader. A list of the core features and properties can be found at http://www.saxproject.org/

All implementations are required to support the javax.xml.XMLConstants#FEATURE_SECURE_PROCESSING feature. When the feature is

  • true: the implementation will limit XML processing to conform to implementation limits. Examples include entity expansion limits and XML Schema constructs that would consume large amounts of resources. If XML processing is limited for security reasons, it will be reported via a call to the registered org.xml.sax.ErrorHandler#fatalError(SAXParseException exception). See SAXParser parse methods for handler specification.
  • When the feature is false, the implementation will processing XML according to the XML specifications without regard to possible implementation limits.
com.sun.xml.xsom.impl.parser back to summary

private Class SAXParserFactoryAdaptor.SAXParserImpl

extends SAXParser
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final SAXParserFactoryAdaptor.XMLReaderImpl

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Parser
getParser()

Implements abstract javax.xml.parsers.SAXParser.getParser.

Deprecated

Returns the SAX parser that is encapsulated by the implementation of this class.

public Object
getProperty(String name)

Implements abstract javax.xml.parsers.SAXParser.getProperty.

Returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.

public XMLReader
getXMLReader()

Implements abstract javax.xml.parsers.SAXParser.getXMLReader.

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

public boolean
isNamespaceAware()

Implements abstract javax.xml.parsers.SAXParser.isNamespaceAware.

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

public boolean
isValidating()

Implements abstract javax.xml.parsers.SAXParser.isValidating.

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

public void
setProperty(String name, Object value)

Implements abstract javax.xml.parsers.SAXParser.setProperty.

Sets the particular property in the underlying implementation of org.xml.sax.XMLReader.

Inherited from javax.xml.parsers.SAXParser:
getSchemaisXIncludeAwareparseparseparseparseparseparseparseparseparseparsereset

Field Detail

readerback to summary
private final SAXParserFactoryAdaptor.XMLReaderImpl reader

Constructor Detail

SAXParserImplback to summary
private SAXParserImpl()

Method Detail

getParserback to summary
public Parser getParser() throws SAXException

Implements abstract javax.xml.parsers.SAXParser.getParser.

Doc from javax.xml.parsers.SAXParser.getParser.

Deprecated

Returns the SAX parser that is encapsulated by the implementation of this class.

Annotations
@Deprecated
Exceptions
SAXException:
If any SAX errors occur during processing.
getPropertyback to summary
public Object getProperty(String name)

Implements abstract javax.xml.parsers.SAXParser.getProperty.

Doc from javax.xml.parsers.SAXParser.getProperty.

Returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.

getXMLReaderback to summary
public XMLReader getXMLReader() throws SAXException

Implements abstract javax.xml.parsers.SAXParser.getXMLReader.

Doc from javax.xml.parsers.SAXParser.getXMLReader.

Returns the org.xml.sax.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 javax.xml.parsers.SAXParser.isNamespaceAware.

Doc from javax.xml.parsers.SAXParser.isNamespaceAware.

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

isValidatingback to summary
public boolean isValidating()

Implements abstract javax.xml.parsers.SAXParser.isValidating.

Doc from javax.xml.parsers.SAXParser.isValidating.

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

setPropertyback to summary
public void setProperty(String name, Object value)

Implements abstract javax.xml.parsers.SAXParser.setProperty.

Doc from javax.xml.parsers.SAXParser.setProperty.

Sets the particular property in the underlying implementation of org.xml.sax.XMLReader. A list of the core features and properties can be found at http://sax.sourceforge.net/?selected=get-set.

All implementations that implement JAXP 1.5 or newer are required to support the javax.xml.XMLConstants#ACCESS_EXTERNAL_DTD and javax.xml.XMLConstants#ACCESS_EXTERNAL_SCHEMA properties.

com.sun.xml.xsom.impl.parser back to summary

private Class SAXParserFactoryAdaptor.XMLReaderImpl

extends XMLFilterImpl
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
public void
parse(String systemId)

Overrides org.xml.sax.helpers.XMLFilterImpl.parse.

Implements org.xml.sax.XMLReader.parse.

Parse a document.

Inherited from org.xml.sax.helpers.XMLFilterImpl:
charactersendDocumentendElementendPrefixMappingerrorfatalErrorgetContentHandlergetDTDHandlergetEntityResolvergetErrorHandlergetFeaturegetParentgetPropertyignorableWhitespacenotationDeclprocessingInstructionresolveEntitysetContentHandlersetDocumentLocatorsetDTDHandlersetEntityResolversetErrorHandlersetFeaturesetParentsetPropertyskippedEntitystartDocumentstartElementstartPrefixMappingunparsedEntityDeclwarning

Constructor Detail

XMLReaderImplback to summary
private XMLReaderImpl()

Method Detail

parseback to summary
public void parse(InputSource input) throws IOException, SAXException

Overrides org.xml.sax.helpers.XMLFilterImpl.parse.

Implements org.xml.sax.XMLReader.parse.

Doc from org.xml.sax.helpers.XMLFilterImpl.parse.

Parse a document.

Exceptions
IOException:
An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.
SAXException:
Any SAX exception, possibly wrapping another exception.
parseback to summary
public void parse(String systemId) throws IOException, SAXException

Overrides org.xml.sax.helpers.XMLFilterImpl.parse.

Implements org.xml.sax.XMLReader.parse.

Doc from org.xml.sax.helpers.XMLFilterImpl.parse.

Parse a document.

Exceptions
IOException:
An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.
SAXException:
Any SAX exception, possibly wrapping another exception.