本文整理了Java中com.ctc.wstx.api.ReaderConfig.inputParsingModeDocuments
方法的一些代码示例,展示了ReaderConfig.inputParsingModeDocuments
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ReaderConfig.inputParsingModeDocuments
方法的具体详情如下:
包路径:com.ctc.wstx.api.ReaderConfig
类名称:ReaderConfig
方法名:inputParsingModeDocuments
暂无
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
/**
* Method called if a root-level element is found after the main
* root element was closed. This is legal in multi-doc parsing
* mode (and in fragment mode), but not in the default single-doc
* mode.
*
* @return Token to return
*/
private int handleExtraRoot(char c)
throws XMLStreamException
{
if (!mConfig.inputParsingModeDocuments()) {
/* Has to be single-doc mode, since fragment mode
* should never get here (since fragment mode never has epilog
* or prolog modes)
*/
throwParseError("Illegal to have multiple roots (start tag in epilog?).");
}
// Need to push back the char, since it is the first char of elem name
--mInputPtr;
return handleMultiDocStart(START_ELEMENT);
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
if (!mConfig.inputParsingModeDocuments()) {
throwParseError(ErrorConsts.ERR_WF_PI_XML_TARGET, target, null);
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
public WstxEventReader(XMLEventAllocator a, XMLStreamReader2 r)
{
mAllocator = a;
mReader = r;
mCfgMultiDocMode = (r instanceof StreamScanner)
&& ((StreamScanner) r).getConfig().inputParsingModeDocuments();
}
代码示例来源:origin: FasterXML/woodstox
public WstxEventReader(XMLEventAllocator a, XMLStreamReader2 r)
{
mAllocator = a;
mReader = r;
mCfgMultiDocMode = (r instanceof StreamScanner)
&& ((StreamScanner) r).getConfig().inputParsingModeDocuments();
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
if (mConfig.inputParsingModeDocuments()) {
if (!mStDoctypeFound) {
mCurrToken = handleMultiDocStart(DTD);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
/**
* Method called if a root-level element is found after the main
* root element was closed. This is legal in multi-doc parsing
* mode (and in fragment mode), but not in the default single-doc
* mode.
*
* @return Token to return
*/
private int handleExtraRoot(char c)
throws XMLStreamException
{
if (!mConfig.inputParsingModeDocuments()) {
/* Has to be single-doc mode, since fragment mode
* should never get here (since fragment mode never has epilog
* or prolog modes)
*/
throwParseError("Illegal to have multiple roots (start tag in epilog?).");
}
// Need to push back the char, since it is the first char of elem name
--mInputPtr;
return handleMultiDocStart(START_ELEMENT);
}
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
/**
* Method called if a root-level element is found after the main
* root element was closed. This is legal in multi-doc parsing
* mode (and in fragment mode), but not in the default single-doc
* mode.
* @param c Character passed in (not currently used)
*
* @return Token to return
*/
private int handleExtraRoot(char c)
throws XMLStreamException
{
if (!mConfig.inputParsingModeDocuments()) {
/* Has to be single-doc mode, since fragment mode
* should never get here (since fragment mode never has epilog
* or prolog modes)
*/
throwParseError("Illegal to have multiple roots (start tag in epilog?).");
}
// Need to push back the char, since it is the first char of elem name
--mInputPtr;
return handleMultiDocStart(START_ELEMENT);
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl
/**
* Method called if a root-level element is found after the main
* root element was closed. This is legal in multi-doc parsing
* mode (and in fragment mode), but not in the default single-doc
* mode.
*
* @return Token to return
*/
private int handleExtraRoot(char c)
throws XMLStreamException
{
if (!mConfig.inputParsingModeDocuments()) {
/* Has to be single-doc mode, since fragment mode
* should never get here (since fragment mode never has epilog
* or prolog modes)
*/
throwParseError("Illegal to have multiple roots (start tag in epilog?).");
}
// Need to push back the char, since it is the first char of elem name
--mInputPtr;
return handleMultiDocStart(START_ELEMENT);
}
代码示例来源:origin: woodstox/wstx-asl
/**
* Method called if a root-level element is found after the main
* root element was closed. This is legal in multi-doc parsing
* mode (and in fragment mode), but not in the default single-doc
* mode.
*
* @return Token to return
*/
private int handleExtraRoot(char c)
throws XMLStreamException
{
if (!mConfig.inputParsingModeDocuments()) {
/* Has to be single-doc mode, since fragment mode
* should never get here (since fragment mode never has epilog
* or prolog modes)
*/
throwParseError("Illegal to have multiple roots (start tag in epilog?).");
}
// Need to push back the char, since it is the first char of elem name
--mInputPtr;
return handleMultiDocStart(START_ELEMENT);
}
代码示例来源:origin: woodstox/wstx-lgpl
/**
* Method called if a root-level element is found after the main
* root element was closed. This is legal in multi-doc parsing
* mode (and in fragment mode), but not in the default single-doc
* mode.
*
* @return Token to return
*/
private int handleExtraRoot(char c)
throws XMLStreamException
{
if (!mConfig.inputParsingModeDocuments()) {
/* Has to be single-doc mode, since fragment mode
* should never get here (since fragment mode never has epilog
* or prolog modes)
*/
throwParseError("Illegal to have multiple roots (start tag in epilog?).");
}
// Need to push back the char, since it is the first char of elem name
--mInputPtr;
return handleMultiDocStart(START_ELEMENT);
}
代码示例来源:origin: Nextdoor/bender
/**
* Method called if a root-level element is found after the main
* root element was closed. This is legal in multi-doc parsing
* mode (and in fragment mode), but not in the default single-doc
* mode.
* @param c Character passed in (not currently used)
*
* @return Token to return
*/
private int handleExtraRoot(char c)
throws XMLStreamException
{
if (!mConfig.inputParsingModeDocuments()) {
/* Has to be single-doc mode, since fragment mode
* should never get here (since fragment mode never has epilog
* or prolog modes)
*/
throwParseError("Illegal to have multiple roots (start tag in epilog?).");
}
// Need to push back the char, since it is the first char of elem name
--mInputPtr;
return handleMultiDocStart(START_ELEMENT);
}
代码示例来源:origin: FasterXML/woodstox
/**
* Method called if a root-level element is found after the main
* root element was closed. This is legal in multi-doc parsing
* mode (and in fragment mode), but not in the default single-doc
* mode.
* @param c Character passed in (not currently used)
*
* @return Token to return
*/
private int handleExtraRoot(char c)
throws XMLStreamException
{
if (!mConfig.inputParsingModeDocuments()) {
/* Has to be single-doc mode, since fragment mode
* should never get here (since fragment mode never has epilog
* or prolog modes)
*/
throwParseError("Illegal to have multiple roots (start tag in epilog?).");
}
// Need to push back the char, since it is the first char of elem name
--mInputPtr;
return handleMultiDocStart(START_ELEMENT);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
if (!mConfig.inputParsingModeDocuments()) {
throwParseError(ErrorConsts.ERR_WF_PI_XML_TARGET, target);
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
if (!mConfig.inputParsingModeDocuments()) {
throwParseError(ErrorConsts.ERR_WF_PI_XML_TARGET, target, null);
代码示例来源:origin: woodstox/wstx-asl
if (!mConfig.inputParsingModeDocuments()) {
throwParseError(ErrorConsts.ERR_WF_PI_XML_TARGET, target);
代码示例来源:origin: Nextdoor/bender
if (!mConfig.inputParsingModeDocuments()) {
throwParseError(ErrorConsts.ERR_WF_PI_XML_TARGET, target, null);
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl
if (!mConfig.inputParsingModeDocuments()) {
throwParseError(ErrorConsts.ERR_WF_PI_XML_TARGET, target, null);
代码示例来源:origin: woodstox/wstx-lgpl
if (!mConfig.inputParsingModeDocuments()) {
throwParseError(ErrorConsts.ERR_WF_PI_XML_TARGET, target);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
if (mConfig.inputParsingModeDocuments()) {
if (!mStDoctypeFound) {
mCurrToken = handleMultiDocStart(DTD);
代码示例来源:origin: woodstox/wstx-lgpl
if (mConfig.inputParsingModeDocuments()) {
if (!mStDoctypeFound) {
mCurrToken = handleMultiDocStart(DTD);
内容来源于网络,如有侵权,请联系作者删除!