本文整理了Java中com.ctc.wstx.api.ReaderConfig.willNormalizeLFs
方法的一些代码示例,展示了ReaderConfig.willNormalizeLFs
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ReaderConfig.willNormalizeLFs
方法的具体详情如下:
包路径:com.ctc.wstx.api.ReaderConfig
类名称:ReaderConfig
方法名:willNormalizeLFs
暂无
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
/**
* Constructor used when creating a complete new (main-level) reader that
* does not share its input buffers or state with another reader.
*/
protected StreamScanner(WstxInputSource input, ReaderConfig cfg,
XMLResolver res)
{
super();
mInput = input;
// 17-Jun-2004, TSa: Need to know root-level input source
mRootInput = input;
mConfig = cfg;
mSymbols = cfg.getSymbols();
int cf = cfg.getConfigFlags();
mCfgNsEnabled = (cf & CFG_NAMESPACE_AWARE) != 0;
mCfgReplaceEntities = (cf & CFG_REPLACE_ENTITY_REFS) != 0;
mNormalizeLFs = mConfig.willNormalizeLFs();
mInputBuffer = null;
mInputPtr = mInputEnd = 0;
mEntityResolver = res;
mCfgTreatCharRefsAsEntities = mConfig.willTreatCharRefsAsEnts();
mCachedEntities = mCfgTreatCharRefsAsEntities ? new HashMap() : Collections.EMPTY_MAP;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
/**
* Method called when an entity has been expanded (new input source
* has been created). Needs to initialize location information and change
* active input source.
*/
protected void initInputSource(WstxInputSource newInput, boolean isExt)
throws IOException, XMLStreamException
{
mInput = newInput;
// Let's make sure new input will be read next time input is needed:
mInputPtr = 0;
mInputLen = 0;
/* Plus, reset the input location so that'll be accurate for
* error reporting etc.
*/
mInputTopDepth = mCurrDepth;
mInput.initInputLocation(this, mCurrDepth);
/* 21-Feb-2006, TSa: Linefeeds are NOT normalized when expanding
* internal entities (XML, 2.11)
*/
if (isExt) {
mCfgNormalizeLFs = mConfig.willNormalizeLFs();
} else {
mCfgNormalizeLFs = false;
}
}
代码示例来源:origin: woodstox/wstx-asl
/**
* Method called when an entity has been expanded (new input source
* has been created). Needs to initialize location information and change
* active input source.
*/
protected void initInputSource(WstxInputSource newInput, boolean isExt)
throws IOException, XMLStreamException
{
mInput = newInput;
// Let's make sure new input will be read next time input is needed:
mInputPtr = 0;
mInputLen = 0;
/* Plus, reset the input location so that'll be accurate for
* error reporting etc.
*/
mInputTopDepth = mCurrDepth;
mInput.initInputLocation(this, mCurrDepth);
/* 21-Feb-2006, TSa: Linefeeds are NOT normalized when expanding
* internal entities (XML, 2.11)
*/
if (isExt) {
mCfgNormalizeLFs = mConfig.willNormalizeLFs();
} else {
mCfgNormalizeLFs = false;
}
}
代码示例来源:origin: woodstox/wstx-lgpl
/**
* Method called when an entity has been expanded (new input source
* has been created). Needs to initialize location information and change
* active input source.
*/
protected void initInputSource(WstxInputSource newInput, boolean isExt)
throws IOException, XMLStreamException
{
mInput = newInput;
// Let's make sure new input will be read next time input is needed:
mInputPtr = 0;
mInputLen = 0;
/* Plus, reset the input location so that'll be accurate for
* error reporting etc.
*/
mInputTopDepth = mCurrDepth;
mInput.initInputLocation(this, mCurrDepth);
/* 21-Feb-2006, TSa: Linefeeds are NOT normalized when expanding
* internal entities (XML, 2.11)
*/
if (isExt) {
mCfgNormalizeLFs = mConfig.willNormalizeLFs();
} else {
mCfgNormalizeLFs = false;
}
}
代码示例来源:origin: Nextdoor/bender
/**
* Constructor used when creating a complete new (main-level) reader that
* does not share its input buffers or state with another reader.
*/
protected StreamScanner(WstxInputSource input, ReaderConfig cfg,
XMLResolver res)
{
super();
mInput = input;
// 17-Jun-2004, TSa: Need to know root-level input source
mRootInput = input;
mConfig = cfg;
mSymbols = cfg.getSymbols();
int cf = cfg.getConfigFlags();
mCfgNsEnabled = (cf & CFG_NAMESPACE_AWARE) != 0;
mCfgReplaceEntities = (cf & CFG_REPLACE_ENTITY_REFS) != 0;
mNormalizeLFs = mConfig.willNormalizeLFs();
mInputBuffer = null;
mInputPtr = mInputEnd = 0;
mEntityResolver = res;
mCfgTreatCharRefsAsEntities = mConfig.willTreatCharRefsAsEnts();
if (mCfgTreatCharRefsAsEntities) {
mCachedEntities = new HashMap<String,IntEntity>();
} else {
mCachedEntities = Collections.emptyMap();
}
}
代码示例来源:origin: mguessan/davmail
/**
* Constructor used when creating a complete new (main-level) reader that
* does not share its input buffers or state with another reader.
*/
protected StreamScanner(WstxInputSource input, ReaderConfig cfg,
XMLResolver res)
{
super();
mInput = input;
// 17-Jun-2004, TSa: Need to know root-level input source
mRootInput = input;
mConfig = cfg;
mSymbols = cfg.getSymbols();
int cf = cfg.getConfigFlags();
mCfgNsEnabled = (cf & CFG_NAMESPACE_AWARE) != 0;
mCfgReplaceEntities = (cf & CFG_REPLACE_ENTITY_REFS) != 0;
// waiting for pull request, see https://github.com/FasterXML/woodstox/pull/56
mXml10AllowAllEscapedChars = true;//mConfig.willXml10AllowAllEscapedChars();
mNormalizeLFs = mConfig.willNormalizeLFs();
mInputBuffer = null;
mInputPtr = mInputEnd = 0;
mEntityResolver = res;
mCfgTreatCharRefsAsEntities = mConfig.willTreatCharRefsAsEnts();
if (mCfgTreatCharRefsAsEntities) {
mCachedEntities = new HashMap<String,IntEntity>();
} else {
mCachedEntities = Collections.emptyMap();
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl
/**
* Constructor used when creating a complete new (main-level) reader that
* does not share its input buffers or state with another reader.
*/
protected StreamScanner(WstxInputSource input, ReaderConfig cfg,
XMLResolver res)
{
super();
mInput = input;
// 17-Jun-2004, TSa: Need to know root-level input source
mRootInput = input;
mConfig = cfg;
mSymbols = cfg.getSymbols();
int cf = cfg.getConfigFlags();
mCfgNsEnabled = (cf & CFG_NAMESPACE_AWARE) != 0;
mCfgReplaceEntities = (cf & CFG_REPLACE_ENTITY_REFS) != 0;
mNormalizeLFs = mConfig.willNormalizeLFs();
mInputBuffer = null;
mInputPtr = mInputEnd = 0;
mEntityResolver = res;
mCfgTreatCharRefsAsEntities = mConfig.willTreatCharRefsAsEnts();
mCachedEntities = mCfgTreatCharRefsAsEntities ? new HashMap() : Collections.EMPTY_MAP;
}
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
/**
* Constructor used when creating a complete new (main-level) reader that
* does not share its input buffers or state with another reader.
*/
protected StreamScanner(WstxInputSource input, ReaderConfig cfg,
XMLResolver res)
{
super();
mInput = input;
// 17-Jun-2004, TSa: Need to know root-level input source
mRootInput = input;
mConfig = cfg;
mSymbols = cfg.getSymbols();
int cf = cfg.getConfigFlags();
mCfgNsEnabled = (cf & CFG_NAMESPACE_AWARE) != 0;
mCfgReplaceEntities = (cf & CFG_REPLACE_ENTITY_REFS) != 0;
mAllowXml11EscapedCharsInXml10 = mConfig.willAllowXml11EscapedCharsInXml10();
mNormalizeLFs = mConfig.willNormalizeLFs();
mInputBuffer = null;
mInputPtr = mInputEnd = 0;
mEntityResolver = res;
mCfgTreatCharRefsAsEntities = mConfig.willTreatCharRefsAsEnts();
if (mCfgTreatCharRefsAsEntities) {
mCachedEntities = new HashMap<String,IntEntity>();
} else {
mCachedEntities = Collections.emptyMap();
}
}
代码示例来源:origin: FasterXML/woodstox
/**
* Constructor used when creating a complete new (main-level) reader that
* does not share its input buffers or state with another reader.
*/
protected StreamScanner(WstxInputSource input, ReaderConfig cfg,
XMLResolver res)
{
super();
mInput = input;
// 17-Jun-2004, TSa: Need to know root-level input source
mRootInput = input;
mConfig = cfg;
mSymbols = cfg.getSymbols();
int cf = cfg.getConfigFlags();
mCfgNsEnabled = (cf & CFG_NAMESPACE_AWARE) != 0;
mCfgReplaceEntities = (cf & CFG_REPLACE_ENTITY_REFS) != 0;
mAllowXml11EscapedCharsInXml10 = mConfig.willAllowXml11EscapedCharsInXml10();
mNormalizeLFs = mConfig.willNormalizeLFs();
mInputBuffer = null;
mInputPtr = mInputEnd = 0;
mEntityResolver = res;
mCfgTreatCharRefsAsEntities = mConfig.willTreatCharRefsAsEnts();
if (mCfgTreatCharRefsAsEntities) {
mCachedEntities = new HashMap<String,IntEntity>();
} else {
mCachedEntities = Collections.emptyMap();
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
return willNormalizeLFs() ? Boolean.TRUE : Boolean.FALSE;
代码示例来源:origin: woodstox/wstx-asl
if (mCfgNormalizeLFs != mConfig.willNormalizeLFs()) {
mCfgNormalizeLFs = !input.fromInternalEntity();
代码示例来源:origin: woodstox/wstx-lgpl
if (mCfgNormalizeLFs != mConfig.willNormalizeLFs()) {
mCfgNormalizeLFs = !input.fromInternalEntity();
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
if (mCfgNormalizeLFs != mConfig.willNormalizeLFs()) {
mCfgNormalizeLFs = !input.fromInternalEntity();
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
if (mCfgNormalizeLFs != mConfig.willNormalizeLFs()) {
mCfgNormalizeLFs = !input.fromInternalEntity();
代码示例来源:origin: woodstox/wstx-asl
if (mCfgNormalizeLFs != mConfig.willNormalizeLFs()) {
mCfgNormalizeLFs = !input.fromInternalEntity();
代码示例来源:origin: woodstox/wstx-lgpl
if (mCfgNormalizeLFs != mConfig.willNormalizeLFs()) {
mCfgNormalizeLFs = !input.fromInternalEntity();
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
return willNormalizeLFs() ? Boolean.TRUE : Boolean.FALSE;
case PROP_NORMALIZE_ATTR_VALUES:
return willNormalizeAttrValues() ? Boolean.TRUE : Boolean.FALSE;
代码示例来源:origin: woodstox/wstx-lgpl
return willNormalizeLFs() ? Boolean.TRUE : Boolean.FALSE;
case PROP_NORMALIZE_ATTR_VALUES:
return willNormalizeAttrValues() ? Boolean.TRUE : Boolean.FALSE;
代码示例来源:origin: woodstox/wstx-asl
return willNormalizeLFs() ? Boolean.TRUE : Boolean.FALSE;
case PROP_NORMALIZE_ATTR_VALUES:
return willNormalizeAttrValues() ? Boolean.TRUE : Boolean.FALSE;
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
return willAllowXml11EscapedCharsInXml10() ? Boolean.TRUE : Boolean.FALSE;
case PROP_NORMALIZE_LFS:
return willNormalizeLFs() ? Boolean.TRUE : Boolean.FALSE;
内容来源于网络,如有侵权,请联系作者删除!