com.ctc.wstx.exc.WstxEOFException类的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(6.9k)|赞(0)|评价(0)|浏览(525)

本文整理了Java中com.ctc.wstx.exc.WstxEOFException类的一些代码示例,展示了WstxEOFException类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WstxEOFException类的具体详情如下:
包路径:com.ctc.wstx.exc.WstxEOFException
类名称:WstxEOFException

WstxEOFException介绍

[英]Exception thrown during parsing, if an unexpected EOF is encountered. Location usually signals starting position of current Node.
[中]如果遇到意外的EOF,则在分析期间引发异常。位置通常表示当前节点的起始位置。

代码示例

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

  1. protected void throwUnexpectedEOF(String msg)
  2. throws WstxException
  3. {
  4. throw new WstxEOFException("Unexpected EOF"
  5. +(msg == null ? "" : msg),
  6. getLastCharLocation());
  7. }

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

  1. /**
  2. * Similar to {@link #throwUnexpectedEOF}, but only indicates ending
  3. * of an input block. Used when reading a token that can not span
  4. * input block boundaries (ie. can not continue past end of an
  5. * entity expansion).
  6. */
  7. protected void throwUnexpectedEOB(String msg)
  8. throws WstxException
  9. {
  10. throw new WstxEOFException("Unexpected end of input block"
  11. +(msg == null ? "" : msg),
  12. getLastCharLocation());
  13. }

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

  1. protected void loadMore()
  2. throws IOException, WstxException
  3. {
  4. /* Need to make sure offsets are properly updated for error
  5. * reporting purposes, and do this now while previous amounts
  6. * are still known.
  7. */
  8. mInputProcessed += mInputEnd;
  9. mInputRowStart -= mInputEnd;
  10. mInputPtr = 0;
  11. mInputEnd = mIn.read(mCharBuffer, 0, mCharBuffer.length);
  12. if (mInputEnd < 1) {
  13. throw new WstxEOFException(ParsingErrorMsgs.SUFFIX_IN_XML_DECL,
  14. getLocation());
  15. }
  16. }

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl

  1. protected void loadMore()
  2. throws IOException, WstxException
  3. {
  4. /* Need to make sure offsets are properly updated for error
  5. * reporting purposes, and do this now while previous amounts
  6. * are still known.
  7. */
  8. /* Note: at this point these are all in bytes, not chars (for multibyte
  9. * encodings)
  10. */
  11. mInputProcessed += mInputEnd;
  12. mInputRowStart -= mInputEnd;
  13. mInputPtr = 0;
  14. mInputEnd = (mIn == null) ? -1 : mIn.read(mByteBuffer, 0, mByteBuffer.length);
  15. if (mInputEnd < 1) {
  16. throw new WstxEOFException(ParsingErrorMsgs.SUFFIX_IN_XML_DECL,
  17. getLocation());
  18. }
  19. }

代码示例来源:origin: woodstox/wstx-asl

  1. protected void throwUnexpectedEOF(String msg)
  2. throws WstxException
  3. {
  4. throw new WstxEOFException("Unexpected EOF"
  5. +(msg == null ? "" : msg),
  6. getLastCharLocation());
  7. }

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl

  1. protected void throwUnexpectedEOF(String msg)
  2. throws WstxException
  3. {
  4. throw new WstxEOFException("Unexpected EOF"
  5. +(msg == null ? "" : msg),
  6. getLastCharLocation());
  7. }

代码示例来源:origin: woodstox/wstx-lgpl

  1. /**
  2. * Similar to {@link #throwUnexpectedEOF}, but only indicates ending
  3. * of an input block. Used when reading a token that can not span
  4. * input block boundaries (ie. can not continue past end of an
  5. * entity expansion).
  6. */
  7. protected void throwUnexpectedEOB(String msg)
  8. throws WstxException
  9. {
  10. throw new WstxEOFException("Unexpected end of input block"
  11. +(msg == null ? "" : msg),
  12. getLastCharLocation());
  13. }

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

  1. /**
  2. * Similar to {@link #throwUnexpectedEOF}, but only indicates ending
  3. * of an input block. Used when reading a token that can not span
  4. * input block boundaries (ie. can not continue past end of an
  5. * entity expansion).
  6. */
  7. protected void throwUnexpectedEOB(String msg)
  8. throws WstxException
  9. {
  10. throw new WstxEOFException("Unexpected end of input block"+(msg == null ? "" : msg),
  11. getLastCharLocation());
  12. }

代码示例来源:origin: mguessan/davmail

  1. protected void throwUnexpectedEOF(String msg)
  2. throws WstxException
  3. {
  4. throw new WstxEOFException("Unexpected EOF"+(msg == null ? "" : msg),
  5. getLastCharLocation());
  6. }

代码示例来源:origin: woodstox/wstx-lgpl

  1. protected void throwUnexpectedEOF(String msg)
  2. throws WstxException
  3. {
  4. throw new WstxEOFException("Unexpected EOF"
  5. +(msg == null ? "" : msg),
  6. getLastCharLocation());
  7. }

代码示例来源:origin: com.fasterxml.woodstox/woodstox-core

  1. protected void throwUnexpectedEOF(String msg)
  2. throws WstxException
  3. {
  4. throw new WstxEOFException("Unexpected EOF"+(msg == null ? "" : msg),
  5. getLastCharLocation());
  6. }

代码示例来源:origin: Nextdoor/bender

  1. /**
  2. * Similar to {@link #throwUnexpectedEOF}, but only indicates ending
  3. * of an input block. Used when reading a token that can not span
  4. * input block boundaries (ie. can not continue past end of an
  5. * entity expansion).
  6. */
  7. protected void throwUnexpectedEOB(String msg)
  8. throws WstxException
  9. {
  10. throw new WstxEOFException("Unexpected end of input block"+(msg == null ? "" : msg),
  11. getLastCharLocation());
  12. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

  1. protected void throwUnexpectedEOF(String msg)
  2. throws WstxException
  3. {
  4. throw new WstxEOFException("Unexpected EOF"
  5. +(msg == null ? "" : msg),
  6. getLastCharLocation());
  7. }

代码示例来源:origin: Nextdoor/bender

  1. protected void throwUnexpectedEOF(String msg)
  2. throws WstxException
  3. {
  4. throw new WstxEOFException("Unexpected EOF"+(msg == null ? "" : msg),
  5. getLastCharLocation());
  6. }

代码示例来源:origin: mguessan/davmail

  1. /**
  2. * Similar to {@link #throwUnexpectedEOF}, but only indicates ending
  3. * of an input block. Used when reading a token that can not span
  4. * input block boundaries (ie. can not continue past end of an
  5. * entity expansion).
  6. */
  7. protected void throwUnexpectedEOB(String msg)
  8. throws WstxException
  9. {
  10. throw new WstxEOFException("Unexpected end of input block"+(msg == null ? "" : msg),
  11. getLastCharLocation());
  12. }

代码示例来源:origin: woodstox/wstx-asl

  1. /**
  2. * Similar to {@link #throwUnexpectedEOF}, but only indicates ending
  3. * of an input block. Used when reading a token that can not span
  4. * input block boundaries (ie. can not continue past end of an
  5. * entity expansion).
  6. */
  7. protected void throwUnexpectedEOB(String msg)
  8. throws WstxException
  9. {
  10. throw new WstxEOFException("Unexpected end of input block"
  11. +(msg == null ? "" : msg),
  12. getLastCharLocation());
  13. }

代码示例来源:origin: FasterXML/woodstox

  1. protected void throwUnexpectedEOF(String msg)
  2. throws WstxException
  3. {
  4. throw new WstxEOFException("Unexpected EOF"+(msg == null ? "" : msg),
  5. getLastCharLocation());
  6. }

代码示例来源:origin: FasterXML/woodstox

  1. /**
  2. * Similar to {@link #throwUnexpectedEOF}, but only indicates ending
  3. * of an input block. Used when reading a token that can not span
  4. * input block boundaries (ie. can not continue past end of an
  5. * entity expansion).
  6. */
  7. protected void throwUnexpectedEOB(String msg)
  8. throws WstxException
  9. {
  10. throw new WstxEOFException("Unexpected end of input block"+(msg == null ? "" : msg),
  11. getLastCharLocation());
  12. }

代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl

  1. /**
  2. * Similar to {@link #throwUnexpectedEOF}, but only indicates ending
  3. * of an input block. Used when reading a token that can not span
  4. * input block boundaries (ie. can not continue past end of an
  5. * entity expansion).
  6. */
  7. protected void throwUnexpectedEOB(String msg)
  8. throws WstxException
  9. {
  10. throw new WstxEOFException("Unexpected end of input block"
  11. +(msg == null ? "" : msg),
  12. getLastCharLocation());
  13. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

  1. /**
  2. * Similar to {@link #throwUnexpectedEOF}, but only indicates ending
  3. * of an input block. Used when reading a token that can not span
  4. * input block boundaries (ie. can not continue past end of an
  5. * entity expansion).
  6. */
  7. protected void throwUnexpectedEOB(String msg)
  8. throws WstxException
  9. {
  10. throw new WstxEOFException("Unexpected end of input block"
  11. +(msg == null ? "" : msg),
  12. getLastCharLocation());
  13. }

相关文章

WstxEOFException类方法