public final class WriterConfig extends CommonConfig
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_AUTOMATIC_NS_PREFIX |
_flagMods, _flags, IMPL_NAME, IMPL_VERSION| Constructor and Description |
|---|
WriterConfig() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
allocFullBBuffer(int minSize) |
char[] |
allocFullCBuffer(int minSize) |
char[] |
allocMediumCBuffer(int minSize) |
char[] |
allocSmallCBuffer(int minSize) |
void |
configureForRobustness() |
void |
configureForSpeed()
For Woodstox, setting this profile disables most checks for validity;
specifically anything that can have measurable performance impact.
|
void |
configureForXmlConformance() |
WriterConfig |
createNonShared() |
void |
doAutoCloseOutput(boolean state) |
void |
enableXml11() |
void |
freeFullBBuffer(byte[] buffer) |
void |
freeFullCBuffer(char[] buffer) |
void |
freeMediumCBuffer(char[] buffer) |
void |
freeSmallCBuffer(char[] buffer) |
String |
getActualEncoding() |
WNameTable |
getAsciiSymbols(WNameFactory f) |
String |
getAutomaticNsPrefix() |
WNameTable |
getCharSymbols(WNameFactory f) |
String |
getExternalEncoding()
This method returns name of encoding that has been passed
explicitly to the reader or writer, from outside.
|
WNameTable |
getLatin1Symbols(WNameFactory f) |
String |
getPreferredEncoding() |
Object |
getProperty(String name,
boolean isMandatory) |
WNameTable |
getUtf8Symbols(WNameFactory f) |
boolean |
isNamespaceAware() |
boolean |
isPropertySupported(String propName) |
boolean |
isXml11() |
void |
setActualEncodingIfNotSet(String enc) |
boolean |
setProperty(String name,
Object value) |
boolean |
willAutoCloseOutput() |
boolean |
willCheckAttributes() |
boolean |
willCheckContent() |
boolean |
willCheckNames() |
boolean |
willCheckStructure() |
boolean |
willEscapeCR() |
boolean |
willFixContent() |
boolean |
willRepairNamespaces() |
hasExplicitFlag, hasFlag, hasFlagBeenModified, setFlagprotected static final String DEFAULT_AUTOMATIC_NS_PREFIX
public void setActualEncodingIfNotSet(String enc)
public void doAutoCloseOutput(boolean state)
public void enableXml11()
public WriterConfig createNonShared()
public boolean isXml11()
isXml11 in class CommonConfigpublic String getExternalEncoding()
CommonConfiggetExternalEncoding in class CommonConfigpublic String getActualEncoding()
getActualEncoding in class CommonConfigpublic String getPreferredEncoding()
public Object getProperty(String name, boolean isMandatory)
getProperty in class CommonConfigisMandatory - If true, unrecognized property should
result in IllegalArgumentExceptionpublic boolean setProperty(String name, Object value)
setProperty in class CommonConfigpublic boolean isPropertySupported(String propName)
isPropertySupported in class CommonConfigpublic boolean willRepairNamespaces()
public boolean isNamespaceAware()
public boolean willAutoCloseOutput()
public String getAutomaticNsPrefix()
public void configureForXmlConformance()
public void configureForRobustness()
public void configureForSpeed()
public boolean willCheckStructure()
public boolean willCheckContent()
public boolean willCheckNames()
public boolean willCheckAttributes()
public boolean willFixContent()
public boolean willEscapeCR()
public char[] allocSmallCBuffer(int minSize)
public void freeSmallCBuffer(char[] buffer)
public char[] allocMediumCBuffer(int minSize)
public void freeMediumCBuffer(char[] buffer)
public char[] allocFullCBuffer(int minSize)
public void freeFullCBuffer(char[] buffer)
public byte[] allocFullBBuffer(int minSize)
public void freeFullBBuffer(byte[] buffer)
public WNameTable getUtf8Symbols(WNameFactory f)
public WNameTable getLatin1Symbols(WNameFactory f)
public WNameTable getAsciiSymbols(WNameFactory f)
public WNameTable getCharSymbols(WNameFactory f)
Copyright © 2012-2015 FasterXML. All Rights Reserved.