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

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

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

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

protected void skipMbLF(int lf)
  throws IOException, WstxException
{
  if (lf == CHAR_CR) {
    int c = nextMultiByte();
    if (c != CHAR_LF) {
      mInputPtr -= mBytesPerChar;
    }
  }
  ++mInputRow;
  mInputRowStart = mInputPtr;
}
origin: org.codehaus.woodstox/woodstox-core-asl

/**
 * @return First character that does not match expected, if any;
 *    CHAR_NULL if match succeeded
 */
protected int checkMbKeyword(String expected)
  throws IOException, WstxException
{
  int len = expected.length();
  
  for (int ptr = 1; ptr < len; ++ptr) {
    int c = nextMultiByte();
    if (c == BYTE_NULL) {
      reportNull();
    }
    if (c != expected.charAt(ptr)) {
     return c;
    }
  }
  return CHAR_NULL;
}
origin: org.codehaus.woodstox/woodstox-core-asl

protected int getNext()
  throws IOException, WstxException
{
  if (mBytesPerChar != 1) {
    if (mBytesPerChar == -1) { // need to translate
      return nextTranslated();
    }
    return nextMultiByte();
  }
  byte b = (mInputPtr < mInputEnd) ?
    mByteBuffer[mInputPtr++] : nextByte();
  return (b & 0xFF);
}
origin: org.codehaus.woodstox/woodstox-core-asl

protected int skipMbWs()
  throws IOException, WstxException
{
  int count = 0;
  while (true) {
    int c = nextMultiByte();
    if (c > CHAR_SPACE) {
      mInputPtr -= mBytesPerChar;
      break;
    }
    if (c == CHAR_CR || c == CHAR_LF) {
      skipMbLF(c);
    } else if (c == CHAR_NULL) {
      reportNull();
    }
    ++count;
  }
  return count;
}
origin: org.codehaus.woodstox/woodstox-core-asl

if (nextMultiByte() == '<'
  && nextMultiByte() == '?'
  && nextMultiByte() == 'x'
  && nextMultiByte() == 'm'
  && nextMultiByte() == 'l'
  && nextMultiByte() <= CHAR_SPACE) {
  return true;
origin: org.codehaus.woodstox/woodstox-core-lgpl

protected void skipMbLF(int lf)
  throws IOException, WstxException
{
  if (lf == CHAR_CR) {
    int c = nextMultiByte();
    if (c != CHAR_LF) {
      mInputPtr -= mBytesPerChar;
    }
  }
  ++mInputRow;
  mInputRowStart = mInputPtr;
}
origin: woodstox/wstx-lgpl

protected void skipMbLF(int lf)
  throws IOException, WstxException
{
  if (lf == CHAR_CR) {
    int c = nextMultiByte();
    if (c != CHAR_LF) {
      mInputPtr -= mBytesPerChar;
    }
  }
  ++mInputRow;
  mInputRowStart = mInputPtr;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

protected void skipMbLF(int lf)
  throws IOException, WstxException
{
  if (lf == CHAR_CR) {
    int c = nextMultiByte();
    if (c != CHAR_LF) {
      mInputPtr -= mBytesPerChar;
    }
  }
  ++mInputRow;
  mInputRowStart = mInputPtr;
}
origin: com.fasterxml.woodstox/woodstox-core

protected void skipMbLF(int lf)
  throws IOException, WstxException
{
  if (lf == CHAR_CR) {
    int c = nextMultiByte();
    if (c != CHAR_LF) {
      mInputPtr -= mBytesPerChar;
    }
  }
  ++mInputRow;
  mInputRowStart = mInputPtr;
}
origin: FasterXML/woodstox

protected void skipMbLF(int lf)
  throws IOException, WstxException
{
  if (lf == CHAR_CR) {
    int c = nextMultiByte();
    if (c != CHAR_LF) {
      mInputPtr -= mBytesPerChar;
    }
  }
  ++mInputRow;
  mInputRowStart = mInputPtr;
}
origin: woodstox/wstx-asl

protected void skipMbLF(int lf)
  throws IOException, WstxException
{
  if (lf == CHAR_CR) {
    int c = nextMultiByte();
    if (c != CHAR_LF) {
      mInputPtr -= mBytesPerChar;
    }
  }
  ++mInputRow;
  mInputRowStart = mInputPtr;
}
origin: Nextdoor/bender

protected void skipMbLF(int lf)
  throws IOException, WstxException
{
  if (lf == CHAR_CR) {
    int c = nextMultiByte();
    if (c != CHAR_LF) {
      mInputPtr -= mBytesPerChar;
    }
  }
  ++mInputRow;
  mInputRowStart = mInputPtr;
}
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-asl

} else {
  if (mb) {
    c = nextMultiByte();
    if (c ==  CHAR_CR || c == CHAR_LF) {
      skipMbLF(c);
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

protected int getNext()
  throws IOException, WstxException
{
  if (mBytesPerChar != 1) {
    if (mBytesPerChar == -1) { // need to translate
      return nextTranslated();
    }
    return nextMultiByte();
  }
  byte b = (mInputPtr < mInputLen) ?
    mByteBuffer[mInputPtr++] : nextByte();
  return (b & 0xFF);
}
origin: woodstox/wstx-lgpl

protected int getNext()
  throws IOException, WstxException
{
  if (mBytesPerChar != 1) {
    if (mBytesPerChar == -1) { // need to translate
      return nextTranslated();
    }
    return nextMultiByte();
  }
  byte b = (mInputPtr < mInputLen) ?
    mByteBuffer[mInputPtr++] : nextByte();
  return (b & 0xFF);
}
origin: woodstox/wstx-asl

protected int getNext()
  throws IOException, WstxException
{
  if (mBytesPerChar != 1) {
    if (mBytesPerChar == -1) { // need to translate
      return nextTranslated();
    }
    return nextMultiByte();
  }
  byte b = (mInputPtr < mInputLen) ?
    mByteBuffer[mInputPtr++] : nextByte();
  return (b & 0xFF);
}
origin: com.fasterxml.woodstox/woodstox-core

@Override
protected int getNext()
  throws IOException, WstxException
{
  if (mBytesPerChar != 1) {
    if (mBytesPerChar == -1) { // need to translate
      return nextTranslated();
    }
    return nextMultiByte();
  }
  byte b = (mInputPtr < mInputEnd) ?
    mByteBuffer[mInputPtr++] : nextByte();
  return (b & 0xFF);
}
origin: org.codehaus.woodstox/woodstox-core-lgpl

protected int getNext()
  throws IOException, WstxException
{
  if (mBytesPerChar != 1) {
    if (mBytesPerChar == -1) { // need to translate
      return nextTranslated();
    }
    return nextMultiByte();
  }
  byte b = (mInputPtr < mInputEnd) ?
    mByteBuffer[mInputPtr++] : nextByte();
  return (b & 0xFF);
}
origin: FasterXML/woodstox

@Override
protected int getNext()
  throws IOException, WstxException
{
  if (mBytesPerChar != 1) {
    if (mBytesPerChar == -1) { // need to translate
      return nextTranslated();
    }
    return nextMultiByte();
  }
  byte b = (mInputPtr < mInputEnd) ?
    mByteBuffer[mInputPtr++] : nextByte();
  return (b & 0xFF);
}
com.ctc.wstx.ioStreamBootstrappernextMultiByte

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

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • JButton (javax.swing)
  • JList (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • 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