APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.org.apache.xml.internal.utils

public Class XMLReaderManager

extends Object
Class Inheritance
Imports
java.util.HashMap, javax.xml.XMLConstants, javax.xml.catalog.CatalogFeatures, jdk.xml.internal.JdkConstants, .JdkXmlFeatures, .JdkXmlUtils, .SecuritySupport, .XMLSecurityManager, org.xml.sax.SAXException, .SAXNotRecognizedException, .SAXNotSupportedException, .XMLReader

Creates XMLReader objects and caches them for re-use. This class follows the singleton pattern.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Modifier and TypeField and Description
private String
_accessExternalDTD

protocols allowed for external DTD references in source file and/or stylesheet.

private CatalogFeatures
private int
private boolean
private boolean
private XMLSecurityManager
private static final String
private boolean
private ThreadLocal<XMLReaderManager.ReaderWrapper>
m_readers

Cache of XMLReader objects

private static final XMLReaderManager
private static final String

Constructor Summary

AccessConstructor and Description
private
XMLReaderManager()

Hidden constructor

Method Summary

Modifier and TypeMethod and Description
public static XMLReaderManager
getInstance(boolean overrideDefaultParser)

Retrieves the singleton reader manager

public Object
getProperty(String name)

Get property value

public XMLReader
getXMLReader()

Retrieves a cached XMLReader for this thread, or creates a new XMLReader.

public boolean
overrideDefaultParser()

Return the state of the services mechanism feature.

public void
releaseXMLReader(XMLReader
The XMLReader that's being released.
reader
)

Mark the cached XMLReader as available.

public void
setFeature(String name, boolean value)

Set feature

public void
setOverrideDefaultParser(boolean flag)

Set the state of the services mechanism feature.

public void
setProperty(String name, Object value)

Set property.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_accessExternalDTDback to summary
private String _accessExternalDTD

protocols allowed for external DTD references in source file and/or stylesheet.

_catalogFeaturesback to summary
private CatalogFeatures _catalogFeatures
_cdataChunkSizeback to summary
private int _cdataChunkSize
_secureProcessingback to summary
private boolean _secureProcessing
_useCatalogback to summary
private boolean _useCatalog
_xmlSecurityManagerback to summary
private XMLSecurityManager _xmlSecurityManager
LEXICAL_HANDLER_PROPERTYback to summary
private static final String LEXICAL_HANDLER_PROPERTY
m_overrideDefaultParserback to summary
private boolean m_overrideDefaultParser
m_readersback to summary
private ThreadLocal<XMLReaderManager.ReaderWrapper> m_readers

Cache of XMLReader objects

m_singletonManagerback to summary
private static final XMLReaderManager m_singletonManager
propertyback to summary
private static final String property

Constructor Detail

XMLReaderManagerback to summary
private XMLReaderManager()

Hidden constructor

Method Detail

getInstanceback to summary
public static XMLReaderManager getInstance(boolean overrideDefaultParser)

Retrieves the singleton reader manager

getPropertyback to summary
public Object getProperty(String name)

Get property value

getXMLReaderback to summary
public XMLReader getXMLReader() throws SAXException

Retrieves a cached XMLReader for this thread, or creates a new XMLReader. When the caller no longer needs the reader, it must release it with a call to releaseXMLReader.

overrideDefaultParserback to summary
public boolean overrideDefaultParser()

Return the state of the services mechanism feature.

releaseXMLReaderback to summary
public void releaseXMLReader(XMLReader reader)

Mark the cached XMLReader as available. If the reader was not actually in the cache, do nothing.

Parameters
reader:XMLReader

The XMLReader that's being released.

setFeatureback to summary
public void setFeature(String name, boolean value)

Set feature

setOverrideDefaultParserback to summary
public void setOverrideDefaultParser(boolean flag)

Set the state of the services mechanism feature.

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

Set property.

com.sun.org.apache.xml.internal.utils back to summary

pack-priv Class XMLReaderManager.ReaderWrapper

extends Object
Class Inheritance
  • java.lang.Object
  • com.sun.org.apache.xml.internal.utils.XMLReaderManager.ReaderWrapper

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv XMLReader

Constructor Summary

AccessConstructor and Description
public
ReaderWrapper(XMLReader reader, boolean overrideDefaultParser)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

overrideDefaultParserback to summary
pack-priv boolean overrideDefaultParser
readerback to summary
pack-priv XMLReader reader

Constructor Detail

ReaderWrapperback to summary
public ReaderWrapper(XMLReader reader, boolean overrideDefaultParser)