- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.ctc.wstx.evt.WstxEventReader
类的一些代码示例,展示了WstxEventReader
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WstxEventReader
类的具体详情如下:
包路径:com.ctc.wstx.evt.WstxEventReader
类名称:WstxEventReader
[英]Woodstox version of XMLEventReader2 (and XMLEventReader).
NOTE: up to Woodstox 5.1, this was based on Stax2 Reference Implementation ( org.codehaus.stax2.ri.Stax2EventReaderImpl), but due to various issues has temporarily (?) been cut-paste-modified here. Ideally it would be reconciled once Stax2-api version 4.2 can be relied as baseline, but that may take time.
[中]XMLEventReader2(和XMLEventReader)的Woodstox版本。
注:在Woodstox 5.1之前,这是基于Stax2参考实现的(org.codehaus.Stax2.ri.Stax2EventReaderImpl),但由于各种问题,暂时(?)这里的剪贴修改过了。理想情况下,只要Stax2 api 4.2版可以作为基准,就可以进行协调,但这可能需要时间。
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public XMLEventReader createXMLEventReader(InputStream in, String enc)
throws XMLStreamException
{
// false for auto-close, since caller has access to the input stream
return new WstxEventReader(createEventAllocator(),
createSR(null, in, enc, true, false));
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public boolean isPropertySupported(String name)
{
return ((XMLStreamReader2)getStreamReader()).isPropertySupported(name);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
public Object next() {
try {
return nextEvent();
} catch (XMLStreamException sex) {
throwFromSex(sex);
return null;
}
}
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
@Override
public Object next() {
try {
return nextEvent();
} catch (XMLStreamException sex) {
throwUnchecked(sex);
return null;
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
public XMLEvent peek()
throws XMLStreamException
{
if (mPeekedEvent == null) {
if (mState == STATE_EOD) {
// 06-Mar-2006, TSa: Fixed as per Arjen's suggestion:
//throwEOD();
return null;
}
if (mState == STATE_INITIAL) {
// Not sure what it should be... but this should do:
mPrePeekEvent = START_DOCUMENT;
mPeekedEvent = createStartEvent();
mState = STATE_CONTENT;
} else {
mPrePeekEvent = mReader.getEventType();
mPeekedEvent = createNextEvent(false, mReader.next());
}
}
return mPeekedEvent;
}
代码示例来源:origin: woodstox/wstx-asl
throwParseError("Received non-all-whitespace CHARACTERS or CDATA event in nextTag().");
break; // never gets here, but some compilers whine without...
case START_ELEMENT:
throwParseError("Received event "+evt.getEventType()+", instead of START_ELEMENT or END_ELEMENT.");
continue;
throwParseError("Received non-all-whitespace CHARACTERS or CDATA event in nextTag().");
break; // just to keep Jikes happy...
return createNextEvent(false, next);
throwParseError("Received event "+next+", instead of START_ELEMENT or END_ELEMENT.");
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
@Override
public XMLEvent nextEvent() throws XMLStreamException
{
if (mState == STATE_END_OF_INPUT) {
throwEndOfInput();
} else if (mState == STATE_INITIAL) {
mState = STATE_CONTENT;
return createStartDocumentEvent();
}
if (mPeekedEvent != null) {
XMLEvent evt = mPeekedEvent;
mPeekedEvent = null;
if (evt.isEndDocument()) {
updateStateEndDocument();
}
return evt;
}
return createNextEvent(true, mReader.next());
}
代码示例来源:origin: FasterXML/woodstox
reportProblem(findErrorDesc(ERR_GETELEMTEXT_NOT_START_ELEM, mPrePeekEvent));
for (; true; evt = nextEvent()) {
if (evt.isEndElement()) {
break;
reportProblem(findErrorDesc(ERR_GETELEMTEXT_NON_TEXT_EVENT, type));
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
break;
reportProblem(findErrorDesc(ERR_NEXTTAG_NON_WS_TEXT, type));
break; // never gets here, but some compilers whine without...
case START_ELEMENT:
reportProblem(findErrorDesc(ERR_NEXTTAG_WRONG_TYPE, type));
continue;
reportProblem(findErrorDesc(ERR_NEXTTAG_NON_WS_TEXT, next));
break; // just to keep Jikes happy...
return createNextEvent(false, next);
reportProblem(findErrorDesc(ERR_NEXTTAG_WRONG_TYPE, next));
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
@Override
public XMLEvent peek() throws XMLStreamException
{
if (mPeekedEvent == null) {
if (mState == STATE_END_OF_INPUT) {
// 06-Mar-2006, TSa: Fixed as per Arjen's suggestion:
//throwEndOfInput();
return null;
}
if (mState == STATE_INITIAL) {
// Not sure what it should be... but this should do:
mPrePeekEvent = START_DOCUMENT;
mPeekedEvent = createStartDocumentEvent();
mState = STATE_CONTENT;
} else {
mPrePeekEvent = mReader.getEventType();
mPeekedEvent = createNextEvent(false, mReader.next());
}
}
return mPeekedEvent;
}
代码示例来源:origin: woodstox/wstx-asl
for (; true; evt = nextEvent()) {
if (evt.isEndElement()) {
break;
代码示例来源:origin: woodstox/wstx-asl
protected void throwParseError(String msg)
throws XMLStreamException
{
throwParseError(msg, mReader.getLocation());
}
代码示例来源:origin: woodstox/wstx-lgpl
public XMLEvent peek()
throws XMLStreamException
{
if (mPeekedEvent == null) {
if (mState == STATE_EOD) {
// 06-Mar-2006, TSa: Fixed as per Arjen's suggestion:
//throwEOD();
return null;
}
if (mState == STATE_INITIAL) {
// Not sure what it should be... but this should do:
mPrePeekEvent = START_DOCUMENT;
mPeekedEvent = createStartEvent();
mState = STATE_CONTENT;
} else {
mPrePeekEvent = mReader.getEventType();
mPeekedEvent = createNextEvent(false, mReader.next());
}
}
return mPeekedEvent;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
throwParseError("Received non-all-whitespace CHARACTERS or CDATA event in nextTag().");
break; // never gets here, but some compilers whine without...
case START_ELEMENT:
throwParseError("Received event "+evt.getEventType()+", instead of START_ELEMENT or END_ELEMENT.");
continue;
throwParseError("Received non-all-whitespace CHARACTERS or CDATA event in nextTag().");
break; // just to keep Jikes happy...
return createNextEvent(false, next);
throwParseError("Received event "+next+", instead of START_ELEMENT or END_ELEMENT.");
代码示例来源:origin: FasterXML/woodstox
@Override
public XMLEvent nextEvent() throws XMLStreamException
{
if (mState == STATE_END_OF_INPUT) {
throwEndOfInput();
} else if (mState == STATE_INITIAL) {
mState = STATE_CONTENT;
return createStartDocumentEvent();
}
if (mPeekedEvent != null) {
XMLEvent evt = mPeekedEvent;
mPeekedEvent = null;
if (evt.isEndDocument()) {
updateStateEndDocument();
}
return evt;
}
return createNextEvent(true, mReader.next());
}
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
reportProblem(findErrorDesc(ERR_GETELEMTEXT_NOT_START_ELEM, mPrePeekEvent));
for (; true; evt = nextEvent()) {
if (evt.isEndElement()) {
break;
reportProblem(findErrorDesc(ERR_GETELEMTEXT_NON_TEXT_EVENT, type));
代码示例来源:origin: FasterXML/woodstox
break;
reportProblem(findErrorDesc(ERR_NEXTTAG_NON_WS_TEXT, type));
break; // never gets here, but some compilers whine without...
case START_ELEMENT:
reportProblem(findErrorDesc(ERR_NEXTTAG_WRONG_TYPE, type));
continue;
reportProblem(findErrorDesc(ERR_NEXTTAG_NON_WS_TEXT, next));
break; // just to keep Jikes happy...
return createNextEvent(false, next);
reportProblem(findErrorDesc(ERR_NEXTTAG_WRONG_TYPE, next));
代码示例来源:origin: FasterXML/woodstox
@Override
public Object next() {
try {
return nextEvent();
} catch (XMLStreamException sex) {
throwUnchecked(sex);
return null;
}
}
代码示例来源:origin: FasterXML/woodstox
@Override
public XMLEvent peek() throws XMLStreamException
{
if (mPeekedEvent == null) {
if (mState == STATE_END_OF_INPUT) {
// 06-Mar-2006, TSa: Fixed as per Arjen's suggestion:
//throwEndOfInput();
return null;
}
if (mState == STATE_INITIAL) {
// Not sure what it should be... but this should do:
mPrePeekEvent = START_DOCUMENT;
mPeekedEvent = createStartDocumentEvent();
mState = STATE_CONTENT;
} else {
mPrePeekEvent = mReader.getEventType();
mPeekedEvent = createNextEvent(false, mReader.next());
}
}
return mPeekedEvent;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox
for (; true; evt = nextEvent()) {
if (evt.isEndElement()) {
break;
本文整理了Java中com.ctc.wstx.evt.WstxEventReader.throwParseError()方法的一些代码示例,展示了WstxEventReader.throwParseE
本文整理了Java中com.ctc.wstx.evt.WstxEventReader.createStartEvent()方法的一些代码示例,展示了WstxEventReader.createStar
本文整理了Java中com.ctc.wstx.evt.WstxEventReader.()方法的一些代码示例,展示了WstxEventReader.()的具体用法。这些代码示例主要来源于Github/
本文整理了Java中com.ctc.wstx.evt.WstxEventReader.createNextEvent()方法的一些代码示例,展示了WstxEventReader.createNextE
本文整理了Java中com.ctc.wstx.evt.WstxEventReader.getStreamReader()方法的一些代码示例,展示了WstxEventReader.getStreamRe
本文整理了Java中com.ctc.wstx.evt.WstxEventReader.nextEvent()方法的一些代码示例,展示了WstxEventReader.nextEvent()的具体用法。
本文整理了Java中com.ctc.wstx.evt.WstxEventReader.throwFromSex()方法的一些代码示例,展示了WstxEventReader.throwFromSex()
我是一名优秀的程序员,十分优秀!