| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | ReaderConfig.EncodingContext
This is a simple container class that is used to encapsulate per-factory encoding-dependant information like symbol tables. |
| Modifier and Type | Field and Description |
|---|---|
| protected BufferRecycler | _currRecycler
This is the actually container of the recyclable buffers. |
| pack-priv static final ThreadLocal | _recyclerRef
This |
| public static final int | |
| protected static final int | DEFAULT_FLAGS
These are the default settings for XMLInputFactory. |
| public static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| private IllegalCharHandler | |
| private String | mActualEncoding
Name of the actual encoding that input was found to be in (if any -- can't be determined if a Reader was passed in). |
| private final UriCanonicalizer | mCanonicalizer
For efficient access by qualified name, as well as uniqueness checks, namespace URIs need to be canonicalized. |
| private final ReaderConfig. | mEncCtxt
A single encoding context instance is shared between all ReaderConfig instances created for readers by an input factory. |
| private final String | mExtEncoding
Encoding passed in as external information, possibly from source from which xml content was gained from (for example, as an HTTP header, or file metadata). |
| private final String | |
| private XMLReporter | |
| private XMLResolver | |
| private final String | |
| private String | |
| private int | |
| private String | |
| private static final HashMap | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| private | ReaderConfig(String publicId, String systemId, String extEnc, ReaderConfig.
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public char[] | |
| public char[] | |
| public char[] | |
| public String | |
| public void | configureForConvenience()
Method to call to make Reader created be as "convenient" to use as possible; ie try to avoid having to deal with some of things like segmented text chunks. |
| public void | configureForLowMemUsage()
Method to call to minimize the memory usage of the stream/event reader; both regarding Objects created, and the temporary memory usage during parsing. |
| public void | configureForRoundTripping()
Method to call to make Reader try to preserve as much of input formatting as possible, so that round-tripping would be as lossless as possible. |
| public void | configureForSpeed()
Method to call to make the Reader created be as fast as possible reading documents, especially for long-running processes where caching is likely to help. |
| public void | configureForXmlConformance()
Method to call to make Reader created conform as closely to XML standard as possible, doing all checks and transformations mandated (linefeed conversions, attr value normalizations). |
| public ReaderConfig | |
| private BufferRecycler | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | doRetainAttributeGeneralEntities(boolean
Whether to enable or disable property state)Method for enabling or disabling
|
| protected int | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | |
| public ByteBasedPNameTable | |
| public CharBasedPNameTable | |
| public XmlCharTypes | |
| public String | getExternalEncoding()
Implements abstract com. |
| public IllegalCharHandler | |
| public final Object | getProperty(String name, boolean
If true, unrecognized property should
result in isMandatory)IllegalArgumentExceptionOverrides com. |
| public String | |
| public String | |
| public String | |
| public int | |
| public String | |
| public XMLReporter | |
| public XMLResolver | |
| public boolean | |
| public boolean | |
| public boolean | isPropertySupported(String propName)
Overrides com. |
| public boolean | |
| public void | |
| public void | |
| public boolean | |
| public void | |
| public final void | |
| public void | |
| public void | |
| public final void | |
| public final void | |
| public void | |
| public void | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: Whether the property is enabled or disabledAccessor for checking configured state of
|
| public boolean |
| _currRecycler | back to summary |
|---|---|
| protected BufferRecycler _currRecycler This is the actually container of the recyclable buffers. It is obtained via ThreadLocal/SoftReference combination, if one exists, when Config instance is created. If one does not exist, it will created first time a buffer is returned. | |
| _recyclerRef | back to summary |
|---|---|
| pack-priv static final ThreadLocal<SoftReference<BufferRecycler>> _recyclerRef This | |
| DEFAULT_CHAR_BUFFER_LEN | back to summary |
|---|---|
| public static final int DEFAULT_CHAR_BUFFER_LEN | |
| DEFAULT_FLAGS | back to summary |
|---|---|
| protected static final int DEFAULT_FLAGS These are the default settings for XMLInputFactory. | |
| DEFAULT_SMALL_BUFFER_LEN | back to summary |
|---|---|
| public static final int DEFAULT_SMALL_BUFFER_LEN | |
| F_AUTO_CLOSE_INPUT | back to summary |
|---|---|
| protected static final int F_AUTO_CLOSE_INPUT | |
| F_COALESCING | back to summary |
|---|---|
| protected static final int F_COALESCING | |
| F_DTD_AWARE | back to summary |
|---|---|
| protected static final int F_DTD_AWARE | |
| F_DTD_VALIDATING | back to summary |
|---|---|
| protected static final int F_DTD_VALIDATING | |
| F_EXPAND_ENTITIES | back to summary |
|---|---|
| protected static final int F_EXPAND_ENTITIES | |
| F_INTERN_NAMES | back to summary |
|---|---|
| protected static final int F_INTERN_NAMES | |
| F_INTERN_NS_URIS | back to summary |
|---|---|
| protected static final int F_INTERN_NS_URIS | |
| F_LAZY_PARSING | back to summary |
|---|---|
| protected static final int F_LAZY_PARSING | |
| F_NS_AWARE | back to summary |
|---|---|
| protected static final int F_NS_AWARE | |
| F_PRESERVE_LOCATION | back to summary |
|---|---|
| protected static final int F_PRESERVE_LOCATION | |
| F_REPORT_CDATA | back to summary |
|---|---|
| protected static final int F_REPORT_CDATA | |
| F_RETAIN_ATTRIBUTE_GENERAL_ENTITIES | back to summary |
|---|---|
| protected static final int F_RETAIN_ATTRIBUTE_GENERAL_ENTITIES | |
| illegalCharHandler | back to summary |
|---|---|
| private IllegalCharHandler illegalCharHandler | |
| mActualEncoding | back to summary |
|---|---|
| private String mActualEncoding Name of the actual encoding that input was found to be in (if any -- can't be determined if a Reader was passed in). | |
| mCanonicalizer | back to summary |
|---|---|
| private final UriCanonicalizer mCanonicalizer For efficient access by qualified name, as well as uniqueness checks, namespace URIs need to be canonicalized. | |
| mEncCtxt | back to summary |
|---|---|
| private final ReaderConfig. A single encoding context instance is shared between all ReaderConfig instances created for readers by an input factory. It is used for sharing symbol tables. | |
| mExtEncoding | back to summary |
|---|---|
| private final String mExtEncoding Encoding passed in as external information, possibly from source from which xml content was gained from (for example, as an HTTP header, or file metadata). | |
| mPublicId | back to summary |
|---|---|
| private final String mPublicId | |
| mReporter | back to summary |
|---|---|
| private XMLReporter mReporter | |
| mResolver | back to summary |
|---|---|
| private XMLResolver mResolver | |
| mSystemId | back to summary |
|---|---|
| private final String mSystemId | |
| mXmlDeclEncoding | back to summary |
|---|---|
| private String mXmlDeclEncoding | |
| mXmlDeclStandalone | back to summary |
|---|---|
| private int mXmlDeclStandalone | |
| mXmlDeclVersion | back to summary |
|---|---|
| private String mXmlDeclVersion | |
| sProperties | back to summary |
|---|---|
| private static final HashMap<String, Object> sProperties | |
| STANDALONE_NO | back to summary |
|---|---|
| public static final int STANDALONE_NO | |
| STANDALONE_UNKNOWN | back to summary |
|---|---|
| public static final int STANDALONE_UNKNOWN | |
| STANDALONE_YES | back to summary |
|---|---|
| public static final int STANDALONE_YES | |
| ReaderConfig | back to summary |
|---|---|
| private ReaderConfig(String publicId, String systemId, String extEnc, ReaderConfig. | |
| ReaderConfig | back to summary |
|---|---|
| public ReaderConfig() | |
| allocFullBBuffer | back to summary |
|---|---|
| public byte[] allocFullBBuffer(int minSize) | |
| allocFullCBuffer | back to summary |
|---|---|
| public char[] allocFullCBuffer(int minSize) | |
| allocMediumCBuffer | back to summary |
|---|---|
| public char[] allocMediumCBuffer(int minSize) | |
| allocSmallCBuffer | back to summary |
|---|---|
| public char[] allocSmallCBuffer(int minSize) | |
| canonicalizeURI | back to summary |
|---|---|
| public String canonicalizeURI(char[] buf, int uriLen) | |
| configureForConvenience | back to summary |
|---|---|
| public void configureForConvenience() Method to call to make Reader created be as "convenient" to use
as possible; ie try to avoid having to deal with some of things
like segmented text chunks. This may incur some slight performance
penalties, but should not affect XML conformance.
See | |
| configureForLowMemUsage | back to summary |
|---|---|
| public void configureForLowMemUsage() Method to call to minimize the memory usage of the stream/event reader; both regarding Objects created, and the temporary memory usage during parsing. This generally incurs some performance penalties, due to using smaller input buffers.
See | |
| configureForRoundTripping | back to summary |
|---|---|
| public void configureForRoundTripping() Method to call to make Reader try to preserve as much of input formatting as possible, so that round-tripping would be as lossless as possible.
See | |
| configureForSpeed | back to summary |
|---|---|
| public void configureForSpeed() Method to call to make the Reader created be as fast as possible reading documents, especially for long-running processes where caching is likely to help.
See | |
| configureForXmlConformance | back to summary |
|---|---|
| public void configureForXmlConformance() Method to call to make Reader created conform as closely to XML
standard as possible, doing all checks and transformations mandated
(linefeed conversions, attr value normalizations).
See Notes Does NOT change 'performance' settings (buffer sizes, DTD caching, coalescing, interning, accurate location info). | |
| createNonShared | back to summary |
|---|---|
| public ReaderConfig createNonShared(String publicId, String systemId, String extEnc) | |
| createRecycler | back to summary |
|---|---|
| private BufferRecycler createRecycler() | |
| doAutoCloseInput | back to summary |
|---|---|
| public void doAutoCloseInput(boolean state) | |
| doCoalesceText | back to summary |
|---|---|
| public void doCoalesceText(boolean state) | |
| doParseLazily | back to summary |
|---|---|
| public void doParseLazily(boolean state) | |
| doPreserveLocation | back to summary |
|---|---|
| public void doPreserveLocation(boolean state) | |
| doReportCData | back to summary |
|---|---|
| public void doReportCData(boolean state) | |
| doRetainAttributeGeneralEntities | back to summary |
|---|---|
| public void doRetainAttributeGeneralEntities(boolean state) Method for enabling or disabling
| |
| findPropertyId | back to summary |
|---|---|
| protected int findPropertyId(String propName) | |
| freeFullBBuffer | back to summary |
|---|---|
| public void freeFullBBuffer(byte[] buffer) | |
| freeFullCBuffer | back to summary |
|---|---|
| public void freeFullCBuffer(char[] buffer) | |
| freeMediumCBuffer | back to summary |
|---|---|
| public void freeMediumCBuffer(char[] buffer) | |
| freeSmallCBuffer | back to summary |
|---|---|
| public void freeSmallCBuffer(char[] buffer) | |
| getActualEncoding | back to summary |
|---|---|
| public String getActualEncoding() Implements abstract com.
| |
| getBBSymbols | back to summary |
|---|---|
| public ByteBasedPNameTable getBBSymbols() | |
| getCBSymbols | back to summary |
|---|---|
| public CharBasedPNameTable getCBSymbols() | |
| getCharTypes | back to summary |
|---|---|
| public XmlCharTypes getCharTypes() | |
| getExternalEncoding | back to summary |
|---|---|
| public String getExternalEncoding() Implements abstract com. Doc from com. This method returns name of encoding that has been passed explicitly to the reader or writer, from outside. An example is that HTTP server may pass encoding as declared in HTTP headers. This should either be null (if none passed), or the same as actual encoding (which is determined from physical stream contents [for readers], or from encoder properties / configuration [for writers] | |
| getIllegalCharHandler | back to summary |
|---|---|
| public IllegalCharHandler getIllegalCharHandler() | |
| getProperty | back to summary |
|---|---|
| public final Object getProperty(String name, boolean isMandatory) Overrides com.
| |
| getPublicId | back to summary |
|---|---|
| public String getPublicId() | |
| getSystemId | back to summary |
|---|---|
| public String getSystemId() | |
| getXmlDeclEncoding | back to summary |
|---|---|
| public String getXmlDeclEncoding() | |
| getXmlDeclStandalone | back to summary |
|---|---|
| public int getXmlDeclStandalone() | |
| getXmlDeclVersion | back to summary |
|---|---|
| public String getXmlDeclVersion() | |
| getXMLReporter | back to summary |
|---|---|
| public XMLReporter getXMLReporter() | |
| getXMLResolver | back to summary |
|---|---|
| public XMLResolver getXMLResolver() | |
| hasInternNamesBeenEnabled | back to summary |
|---|---|
| public boolean hasInternNamesBeenEnabled() | |
| hasInternNsURIsBeenEnabled | back to summary |
|---|---|
| public boolean hasInternNsURIsBeenEnabled() | |
| isPropertySupported | back to summary |
|---|---|
| public boolean isPropertySupported(String propName) Overrides com.
| |
| isXml11 | back to summary |
|---|---|
| public boolean isXml11() Implements abstract com.
| |
| setActualEncoding | back to summary |
|---|---|
| public void setActualEncoding(String actualEnc) | |
| setIllegalCharHandler | back to summary |
|---|---|
| public void setIllegalCharHandler(IllegalCharHandler illegalCharHandler) | |
| setProperty | back to summary |
|---|---|
| public boolean setProperty(String name, Object value) Overrides com.
| |
| setXmlDeclInfo | back to summary |
|---|---|
| public void setXmlDeclInfo(int version, String xmlDeclEnc, String standalone) | |
| setXmlEncoding | back to summary |
|---|---|
| public final void setXmlEncoding(String enc) | |
| setXMLReporter | back to summary |
|---|---|
| public void setXMLReporter(XMLReporter r) | |
| setXMLResolver | back to summary |
|---|---|
| public void setXMLResolver(XMLResolver r) | |
| setXmlStandalone | back to summary |
|---|---|
| public final void setXmlStandalone(Boolean b) | |
| setXmlVersion | back to summary |
|---|---|
| public final void setXmlVersion(String version) | |
| updateBBSymbols | back to summary |
|---|---|
| public void updateBBSymbols(ByteBasedPNameTable sym) | |
| updateCBSymbols | back to summary |
|---|---|
| public void updateCBSymbols(CharBasedPNameTable sym) | |
| willAutoCloseInput | back to summary |
|---|---|
| public boolean willAutoCloseInput() | |
| willCoalesceText | back to summary |
|---|---|
| public boolean willCoalesceText() | |
| willExpandEntities | back to summary |
|---|---|
| public boolean willExpandEntities() | |
| willInternNames | back to summary |
|---|---|
| public boolean willInternNames() | |
| willInternNsURIs | back to summary |
|---|---|
| public boolean willInternNsURIs() | |
| willParseLazily | back to summary |
|---|---|
| public boolean willParseLazily() | |
| willPreserveLocation | back to summary |
|---|---|
| public boolean willPreserveLocation() | |
| willReportCData | back to summary |
|---|---|
| public boolean willReportCData() | |
| willRetainAttributeGeneralEntities | back to summary |
|---|---|
| public boolean willRetainAttributeGeneralEntities() Accessor for checking configured state of
| |
| willSupportNamespaces | back to summary |
|---|---|
| public boolean willSupportNamespaces() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv ByteBasedPNameTable | |
| pack-priv CharBasedPNameTable | mGeneralTable
If there is no encoding to worry about, we only need a single symbol table. |
| pack-priv ByteBasedPNameTable | |
| pack-priv ByteBasedPNameTable |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized ByteBasedPNameTable | |
| public synchronized ByteBasedPNameTable | |
| public synchronized CharBasedPNameTable | |
| public synchronized ByteBasedPNameTable | |
| public synchronized void | |
| public synchronized void | |
| public synchronized void | |
| public synchronized void |
| mAsciiTable | back to summary |
|---|---|
| pack-priv ByteBasedPNameTable mAsciiTable | |
| mGeneralTable | back to summary |
|---|---|
| pack-priv CharBasedPNameTable mGeneralTable If there is no encoding to worry about, we only need a single symbol table. | |
| mLatin1Table | back to summary |
|---|---|
| pack-priv ByteBasedPNameTable mLatin1Table | |
| mUtf8Table | back to summary |
|---|---|
| pack-priv ByteBasedPNameTable mUtf8Table | |
| EncodingContext | back to summary |
|---|---|
| pack-priv EncodingContext() | |
| getAsciiSymbols | back to summary |
|---|---|
| public synchronized ByteBasedPNameTable getAsciiSymbols() | |
| getLatin1Symbols | back to summary |
|---|---|
| public synchronized ByteBasedPNameTable getLatin1Symbols() | |
| getSymbols | back to summary |
|---|---|
| public synchronized CharBasedPNameTable getSymbols() | |
| getUtf8Symbols | back to summary |
|---|---|
| public synchronized ByteBasedPNameTable getUtf8Symbols() | |
| updateAsciiSymbols | back to summary |
|---|---|
| public synchronized void updateAsciiSymbols(ByteBasedPNameTable sym) | |
| updateLatin1Symbols | back to summary |
|---|---|
| public synchronized void updateLatin1Symbols(ByteBasedPNameTable sym) | |
| updateSymbols | back to summary |
|---|---|
| public synchronized void updateSymbols(CharBasedPNameTable sym) | |
| updateUtf8Symbols | back to summary |
|---|---|
| public synchronized void updateUtf8Symbols(ByteBasedPNameTable sym) | |