Tabnine Logo
StreamBootstrapper.reportUnexpectedChar
Code IndexAdd Tabnine to your IDE (free)

How to use
reportUnexpectedChar
method
in
com.ctc.wstx.io.StreamBootstrapper

Best Java code snippets using com.ctc.wstx.io.StreamBootstrapper.reportUnexpectedChar (Showing top 8 results out of 315)

origin: org.codehaus.woodstox/woodstox-core-asl

protected int getNextAfterWs(boolean reqWs)
  throws IOException, WstxException
{
  int count;
  if (mBytesPerChar == 1) { // single byte
    count = skipSbWs();
  } else {
    if (mBytesPerChar == -1) { // translated
      count = skipTranslatedWs();
    } else { // multi byte
      count = skipMbWs();
    }
  }
  if (reqWs && count == 0) {
    reportUnexpectedChar(getNext(), ERR_XMLDECL_EXP_SPACE);
  }
  // inlined getNext()
  if (mBytesPerChar != 1) {
    if (mBytesPerChar == -1) { // translated
      return nextTranslated();
    }
    return nextMultiByte();
  }
  byte b = (mInputPtr < mInputEnd) ?
    mByteBuffer[mInputPtr++] : nextByte();
  return (b & 0xFF);
}
origin: org.codehaus.woodstox/woodstox-core-lgpl

protected int getNextAfterWs(boolean reqWs)
  throws IOException, WstxException
{
  int count;
  if (mBytesPerChar == 1) { // single byte
    count = skipSbWs();
  } else {
    if (mBytesPerChar == -1) { // translated
      count = skipTranslatedWs();
    } else { // multi byte
      count = skipMbWs();
    }
  }
  if (reqWs && count == 0) {
    reportUnexpectedChar(getNext(), ERR_XMLDECL_EXP_SPACE);
  }
  // inlined getNext()
  if (mBytesPerChar != 1) {
    if (mBytesPerChar == -1) { // translated
      return nextTranslated();
    }
    return nextMultiByte();
  }
  byte b = (mInputPtr < mInputEnd) ?
    mByteBuffer[mInputPtr++] : nextByte();
  return (b & 0xFF);
}
origin: Nextdoor/bender

@Override
protected int getNextAfterWs(boolean reqWs)
  throws IOException, WstxException
{
  int count;
  if (mBytesPerChar == 1) { // single byte
    count = skipSbWs();
  } else {
    if (mBytesPerChar == -1) { // translated
      count = skipTranslatedWs();
    } else { // multi byte
      count = skipMbWs();
    }
  }
  if (reqWs && count == 0) {
    reportUnexpectedChar(getNext(), ERR_XMLDECL_EXP_SPACE);
  }
  // inlined getNext()
  if (mBytesPerChar != 1) {
    if (mBytesPerChar == -1) { // translated
      return nextTranslated();
    }
    return nextMultiByte();
  }
  byte b = (mInputPtr < mInputEnd) ?
    mByteBuffer[mInputPtr++] : nextByte();
  return (b & 0xFF);
}
origin: FasterXML/woodstox

@Override
protected int getNextAfterWs(boolean reqWs)
  throws IOException, WstxException
{
  int count;
  if (mBytesPerChar == 1) { // single byte
    count = skipSbWs();
  } else {
    if (mBytesPerChar == -1) { // translated
      count = skipTranslatedWs();
    } else { // multi byte
      count = skipMbWs();
    }
  }
  if (reqWs && count == 0) {
    reportUnexpectedChar(getNext(), ERR_XMLDECL_EXP_SPACE);
  }
  // inlined getNext()
  if (mBytesPerChar != 1) {
    if (mBytesPerChar == -1) { // translated
      return nextTranslated();
    }
    return nextMultiByte();
  }
  byte b = (mInputPtr < mInputEnd) ?
    mByteBuffer[mInputPtr++] : nextByte();
  return (b & 0xFF);
}
origin: woodstox/wstx-lgpl

protected int getNextAfterWs(boolean reqWs)
  throws IOException, WstxException
{
  int count;
  if (mBytesPerChar == 1) { // single byte
    count = skipSbWs();
  } else {
    if (mBytesPerChar == -1) { // translated
      count = skipTranslatedWs();
    } else { // multi byte
      count = skipMbWs();
    }
  }
  if (reqWs && count == 0) {
    reportUnexpectedChar(getNext(), ERR_XMLDECL_EXP_SPACE);
  }
  // inlined getNext()
  if (mBytesPerChar != 1) {
    if (mBytesPerChar == -1) { // translated
      return nextTranslated();
    }
    return nextMultiByte();
  }
  byte b = (mInputPtr < mInputLen) ?
    mByteBuffer[mInputPtr++] : nextByte();
  return (b & 0xFF);
}
origin: woodstox/wstx-asl

protected int getNextAfterWs(boolean reqWs)
  throws IOException, WstxException
{
  int count;
  if (mBytesPerChar == 1) { // single byte
    count = skipSbWs();
  } else {
    if (mBytesPerChar == -1) { // translated
      count = skipTranslatedWs();
    } else { // multi byte
      count = skipMbWs();
    }
  }
  if (reqWs && count == 0) {
    reportUnexpectedChar(getNext(), ERR_XMLDECL_EXP_SPACE);
  }
  // inlined getNext()
  if (mBytesPerChar != 1) {
    if (mBytesPerChar == -1) { // translated
      return nextTranslated();
    }
    return nextMultiByte();
  }
  byte b = (mInputPtr < mInputLen) ?
    mByteBuffer[mInputPtr++] : nextByte();
  return (b & 0xFF);
}
origin: com.fasterxml.woodstox/woodstox-core

@Override
protected int getNextAfterWs(boolean reqWs)
  throws IOException, WstxException
{
  int count;
  if (mBytesPerChar == 1) { // single byte
    count = skipSbWs();
  } else {
    if (mBytesPerChar == -1) { // translated
      count = skipTranslatedWs();
    } else { // multi byte
      count = skipMbWs();
    }
  }
  if (reqWs && count == 0) {
    reportUnexpectedChar(getNext(), ERR_XMLDECL_EXP_SPACE);
  }
  // inlined getNext()
  if (mBytesPerChar != 1) {
    if (mBytesPerChar == -1) { // translated
      return nextTranslated();
    }
    return nextMultiByte();
  }
  byte b = (mInputPtr < mInputEnd) ?
    mByteBuffer[mInputPtr++] : nextByte();
  return (b & 0xFF);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

protected int getNextAfterWs(boolean reqWs)
  throws IOException, WstxException
{
  int count;
  if (mBytesPerChar == 1) { // single byte
    count = skipSbWs();
  } else {
    if (mBytesPerChar == -1) { // translated
      count = skipTranslatedWs();
    } else { // multi byte
      count = skipMbWs();
    }
  }
  if (reqWs && count == 0) {
    reportUnexpectedChar(getNext(), ERR_XMLDECL_EXP_SPACE);
  }
  // inlined getNext()
  if (mBytesPerChar != 1) {
    if (mBytesPerChar == -1) { // translated
      return nextTranslated();
    }
    return nextMultiByte();
  }
  byte b = (mInputPtr < mInputLen) ?
    mByteBuffer[mInputPtr++] : nextByte();
  return (b & 0xFF);
}
com.ctc.wstx.ioStreamBootstrapperreportUnexpectedChar

Popular methods of StreamBootstrapper

  • getInstance
    Factory method used when the underlying data provider is a pre-allocated block source, and no stream
  • <init>
  • bootstrapInput
  • checkMbKeyword
  • checkSbKeyword
  • checkTranslatedKeyword
  • ensureLoaded
  • getLocation
  • getNext
  • hasXmlDecl
  • loadMore
  • nextByte
  • loadMore,
  • nextByte,
  • nextMultiByte,
  • nextTranslated,
  • readXmlDecl,
  • reportNull,
  • reportWeirdUCS4,
  • reportXmlProblem,
  • resolveStreamEncoding

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • BoxLayout (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now