| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | WriterConfig.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 |
|---|---|
| pack-priv BufferRecycler | _currRecycler
This is the actually container of the recyclable buffers. |
| private String | _encoding
Encoding passed in either during construction, or via xml declaration write. |
| private final WriterConfig. | _encodingContext
A single encoding context instance is shared between all WriterConfig instances created for readers by an output factory. |
| private String | |
| protected static final String | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final ThreadLocal | mRecyclerRef
This |
| pack-priv static final int | |
| private static final HashMap |
| Access | Constructor and Description |
|---|---|
| private | WriterConfig(String encoding, int flags, int flagMods, WriterConfig.
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public char[] | |
| public char[] | |
| public void | |
| public void | configureForSpeed()
For Woodstox, setting this profile disables most checks for validity; specifically anything that can have measurable performance impact. |
| public void | |
| public WriterConfig | |
| private BufferRecycler | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | |
| public WNameTable | |
| public String | Returns: Prefix to use as the base for automatically generated namespace prefixes ("namespace prefix prefix", so to speak). Defaults to "axns".
|
| public WNameTable | |
| public String | getExternalEncoding()
Implements abstract com. |
| public WNameTable | |
| public String | |
| public Object | getProperty(String name, boolean
If true, unrecognized property should
result in isMandatory)IllegalArgumentExceptionOverrides com. |
| public WNameTable | |
| public boolean | |
| public boolean | isPropertySupported(String propName)
Overrides com. |
| public boolean | |
| public void | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean |
| _currRecycler | back to summary |
|---|---|
| pack-priv 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. | |
| _encoding | back to summary |
|---|---|
| private String _encoding Encoding passed in either during construction, or via xml declaration write. | |
| _encodingContext | back to summary |
|---|---|
| private final WriterConfig. A single encoding context instance is shared between all WriterConfig instances created for readers by an output factory. It is used for sharing symbol tables. | |
| _propAutoNsPrefix | back to summary |
|---|---|
| private String _propAutoNsPrefix | |
| DEFAULT_AUTOMATIC_NS_PREFIX | back to summary |
|---|---|
| protected static final String DEFAULT_AUTOMATIC_NS_PREFIX | |
| DEFAULT_FLAGS | back to summary |
|---|---|
| pack-priv static final int DEFAULT_FLAGS | |
| F_AUTO_CLOSE_OUTPUT | back to summary |
|---|---|
| pack-priv static final int F_AUTO_CLOSE_OUTPUT | |
| F_AUTO_EMPTY_ELEMS | back to summary |
|---|---|
| pack-priv static final int F_AUTO_EMPTY_ELEMS | |
| F_NS_AWARE | back to summary |
|---|---|
| pack-priv static final int F_NS_AWARE | |
| F_NS_REPAIRING | back to summary |
|---|---|
| pack-priv static final int F_NS_REPAIRING | |
| mRecyclerRef | back to summary |
|---|---|
| pack-priv static final ThreadLocal<SoftReference<BufferRecycler>> mRecyclerRef This | |
| PROP_AUTO_NS_PREFIX | back to summary |
|---|---|
| pack-priv static final int PROP_AUTO_NS_PREFIX | |
| sProperties | back to summary |
|---|---|
| private static final HashMap<String, Integer> sProperties | |
| WriterConfig | back to summary |
|---|---|
| private WriterConfig(String encoding, int flags, int flagMods, WriterConfig. | |
| WriterConfig | back to summary |
|---|---|
| public WriterConfig() | |
| 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) | |
| configureForRobustness | back to summary |
|---|---|
| public void configureForRobustness() | |
| configureForSpeed | back to summary |
|---|---|
| public void configureForSpeed() For Woodstox, setting this profile disables most checks for validity; specifically anything that can have measurable performance impact. | |
| configureForXmlConformance | back to summary |
|---|---|
| public void configureForXmlConformance() | |
| createNonShared | back to summary |
|---|---|
| public WriterConfig createNonShared() | |
| createRecycler | back to summary |
|---|---|
| private BufferRecycler createRecycler() | |
| doAutoCloseOutput | back to summary |
|---|---|
| public void doAutoCloseOutput(boolean state) | |
| enableXml11 | back to summary |
|---|---|
| public void enableXml11() | |
| 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) | |
| getActualEncoding | back to summary |
|---|---|
| public String getActualEncoding() Implements abstract com.
| |
| getAsciiSymbols | back to summary |
|---|---|
| public WNameTable getAsciiSymbols(WNameFactory f) | |
| getAutomaticNsPrefix | back to summary |
|---|---|
public String getAutomaticNsPrefix()
| |
| getCharSymbols | back to summary |
|---|---|
| public WNameTable getCharSymbols(WNameFactory f) | |
| 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] | |
| getLatin1Symbols | back to summary |
|---|---|
| public WNameTable getLatin1Symbols(WNameFactory f) | |
| getPreferredEncoding | back to summary |
|---|---|
| public String getPreferredEncoding() | |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String name, boolean isMandatory) Overrides com.
| |
| getUtf8Symbols | back to summary |
|---|---|
| public WNameTable getUtf8Symbols(WNameFactory f) | |
| isNamespaceAware | back to summary |
|---|---|
| public boolean isNamespaceAware() | |
| isPropertySupported | back to summary |
|---|---|
| public boolean isPropertySupported(String propName) Overrides com.
| |
| isXml11 | back to summary |
|---|---|
| public boolean isXml11() Implements abstract com.
| |
| setActualEncodingIfNotSet | back to summary |
|---|---|
| public void setActualEncodingIfNotSet(String enc) | |
| setProperty | back to summary |
|---|---|
| public boolean setProperty(String name, Object value) Overrides com.
| |
| willAutoCloseOutput | back to summary |
|---|---|
| public boolean willAutoCloseOutput() | |
| willCheckAttributes | back to summary |
|---|---|
| public boolean willCheckAttributes() | |
| willCheckContent | back to summary |
|---|---|
| public boolean willCheckContent() | |
| willCheckNames | back to summary |
|---|---|
| public boolean willCheckNames() | |
| willCheckStructure | back to summary |
|---|---|
| public boolean willCheckStructure() | |
| willEscapeCR | back to summary |
|---|---|
| public boolean willEscapeCR() | |
| willFixContent | back to summary |
|---|---|
| public boolean willFixContent() | |
| willRepairNamespaces | back to summary |
|---|---|
| public boolean willRepairNamespaces() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv WNameTable | |
| pack-priv WNameTable | |
| pack-priv WNameTable | |
| pack-priv WNameTable |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized WNameTable | |
| public synchronized WNameTable | |
| public synchronized WNameTable | |
| public synchronized WNameTable |
| mAsciiTable | back to summary |
|---|---|
| pack-priv WNameTable mAsciiTable | |
| mCharTable | back to summary |
|---|---|
| pack-priv WNameTable mCharTable | |
| mLatin1Table | back to summary |
|---|---|
| pack-priv WNameTable mLatin1Table | |
| mUtf8Table | back to summary |
|---|---|
| pack-priv WNameTable mUtf8Table | |
| EncodingContext | back to summary |
|---|---|
| pack-priv EncodingContext() | |
| getAsciiSymbols | back to summary |
|---|---|
| public synchronized WNameTable getAsciiSymbols(WNameFactory f) | |
| getCharSymbols | back to summary |
|---|---|
| public synchronized WNameTable getCharSymbols(WNameFactory f) | |
| getLatin1Symbols | back to summary |
|---|---|
| public synchronized WNameTable getLatin1Symbols(WNameFactory f) | |
| getUtf8Symbols | back to summary |
|---|---|
| public synchronized WNameTable getUtf8Symbols(WNameFactory f) | |