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

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

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

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

protected int nextTranslated()
  throws IOException, WstxException
{
  byte b = (mInputPtr < mInputEnd) ?
    mByteBuffer[mInputPtr++] : nextByte();
  int ch = mSingleByteTranslation[b & 0xFF];
  if (ch < 0) { // special char... won't care for now
    ch = -ch;
  }
  return ch;
}
origin: org.codehaus.woodstox/woodstox-core-asl

protected void skipSbLF(byte lfByte)
  throws IOException, WstxException
{
  if (lfByte == BYTE_CR) {
    byte b = (mInputPtr < mInputEnd) ?
      mByteBuffer[mInputPtr++] : nextByte();
    if (b != BYTE_LF) {
      --mInputPtr; // pushback if not 2-char/byte lf
    }
  }
  ++mInputRow;
  mInputRowStart = mInputPtr;
}
origin: org.codehaus.woodstox/woodstox-core-asl

  mByteBuffer[mInputPtr++] : nextByte();
byte b2 = (mInputPtr < mInputEnd) ?
  mByteBuffer[mInputPtr++] : nextByte();
int c;
    mByteBuffer[mInputPtr++] : nextByte();
  byte b4 = (mInputPtr < mInputEnd) ?
    mByteBuffer[mInputPtr++] : nextByte();
origin: org.codehaus.woodstox/woodstox-core-asl

/**
 * @return First character that does not match expected, if any;
 *    CHAR_NULL if match succeeded
 */
protected int checkSbKeyword(String expected)
  throws IOException, WstxException
{
  int len = expected.length();
  
  for (int ptr = 1; ptr < len; ++ptr) {
    byte b = (mInputPtr < mInputEnd) ?
      mByteBuffer[mInputPtr++] : nextByte();
    
    if (b == BYTE_NULL) {
      reportNull();
    }
    if ((b & 0xFF) != expected.charAt(ptr)) {
      return (b & 0xFF);
    }
  }
  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 skipSbWs()
  throws IOException, WstxException
{
  int count = 0;
  while (true) {
    byte b = (mInputPtr < mInputEnd) ?
      mByteBuffer[mInputPtr++] : nextByte();
    if ((b & 0xFF) > CHAR_SPACE) {
      --mInputPtr;
      break;
    }
    if (b == BYTE_CR || b == BYTE_LF) {
      skipSbLF(b);
    } else if (b == BYTE_NULL) {
      reportNull();
    }
    ++count;
  }
  return count;
}
origin: com.fasterxml.woodstox/woodstox-core

protected int nextTranslated()
  throws IOException, WstxException
{
  byte b = (mInputPtr < mInputEnd) ?
    mByteBuffer[mInputPtr++] : nextByte();
  int ch = mSingleByteTranslation[b & 0xFF];
  if (ch < 0) { // special char... won't care for now
    ch = -ch;
  }
  return ch;
}
origin: woodstox/wstx-asl

protected int nextTranslated()
  throws IOException, WstxException
{
  byte b = (mInputPtr < mInputLen) ?
    mByteBuffer[mInputPtr++] : nextByte();
  int ch = mSingleByteTranslation[b & 0xFF];
  if (ch < 0) { // special char... won't care for now
    ch = -ch;
  }
  return ch;
}
origin: org.codehaus.woodstox/woodstox-core-lgpl

protected int nextTranslated()
  throws IOException, WstxException
{
  byte b = (mInputPtr < mInputEnd) ?
    mByteBuffer[mInputPtr++] : nextByte();
  int ch = mSingleByteTranslation[b & 0xFF];
  if (ch < 0) { // special char... won't care for now
    ch = -ch;
  }
  return ch;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.woodstox

protected int nextTranslated()
  throws IOException, WstxException
{
  byte b = (mInputPtr < mInputLen) ?
    mByteBuffer[mInputPtr++] : nextByte();
  int ch = mSingleByteTranslation[b & 0xFF];
  if (ch < 0) { // special char... won't care for now
    ch = -ch;
  }
  return ch;
}
origin: woodstox/wstx-lgpl

protected int nextTranslated()
  throws IOException, WstxException
{
  byte b = (mInputPtr < mInputLen) ?
    mByteBuffer[mInputPtr++] : nextByte();
  int ch = mSingleByteTranslation[b & 0xFF];
  if (ch < 0) { // special char... won't care for now
    ch = -ch;
  }
  return ch;
}
origin: com.fasterxml.woodstox/woodstox-core

protected void skipSbLF(byte lfByte)
  throws IOException, WstxException
{
  if (lfByte == BYTE_CR) {
    byte b = (mInputPtr < mInputEnd) ?
      mByteBuffer[mInputPtr++] : nextByte();
    if (b != BYTE_LF) {
      --mInputPtr; // pushback if not 2-char/byte lf
    }
  }
  ++mInputRow;
  mInputRowStart = mInputPtr;
}
origin: Nextdoor/bender

protected int nextTranslated()
  throws IOException, WstxException
{
  byte b = (mInputPtr < mInputEnd) ?
    mByteBuffer[mInputPtr++] : nextByte();
  int ch = mSingleByteTranslation[b & 0xFF];
  if (ch < 0) { // special char... won't care for now
    ch = -ch;
  }
  return ch;
}
origin: FasterXML/woodstox

protected int nextTranslated()
  throws IOException, WstxException
{
  byte b = (mInputPtr < mInputEnd) ?
    mByteBuffer[mInputPtr++] : nextByte();
  int ch = mSingleByteTranslation[b & 0xFF];
  if (ch < 0) { // special char... won't care for now
    ch = -ch;
  }
  return ch;
}
origin: Nextdoor/bender

protected void skipSbLF(byte lfByte)
  throws IOException, WstxException
{
  if (lfByte == BYTE_CR) {
    byte b = (mInputPtr < mInputEnd) ?
      mByteBuffer[mInputPtr++] : nextByte();
    if (b != BYTE_LF) {
      --mInputPtr; // pushback if not 2-char/byte lf
    }
  }
  ++mInputRow;
  mInputRowStart = mInputPtr;
}
origin: woodstox/wstx-asl

protected void skipSbLF(byte lfByte)
  throws IOException, WstxException
{
  if (lfByte == BYTE_CR) {
    byte b = (mInputPtr < mInputLen) ?
      mByteBuffer[mInputPtr++] : nextByte();
    if (b != BYTE_LF) {
      --mInputPtr; // pushback if not 2-char/byte lf
    }
  }
  ++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

  mByteBuffer[mInputPtr++] : nextByte();
if (b == BYTE_NULL) {
  reportNull();
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-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);
}
com.ctc.wstx.ioStreamBootstrappernextByte

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

Popular in Java

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 12 Jupyter Notebook extensions
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