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

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

Best Java code snippets using com.ctc.wstx.io.StreamBootstrapper.skipSbWs (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.ioStreamBootstrapperskipSbWs

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,
  • reportUnexpectedChar,
  • reportWeirdUCS4,
  • reportXmlProblem,
  • resolveStreamEncoding

Popular in Java

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Collectors (java.util.stream)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for WebStorm
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