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

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

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

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

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

protected int checkTranslatedKeyword(String expected)
  throws IOException, WstxException
{
  int len = expected.length();
  
  for (int ptr = 1; ptr < len; ++ptr) {
    int c = nextTranslated();
    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 skipTranslatedWs()
  throws IOException, WstxException
{
  int count = 0;
  while (true) {
    int c = nextTranslated();
    // Hmmh. Are we to accept NEL (0x85)?
    if (c > CHAR_SPACE && c != CHAR_NEL) {
      --mInputPtr;
      break;
    }
    if (c == CHAR_CR || c == CHAR_LF) {
      skipTranslatedLF(c);
    } else if (c == CHAR_NULL) {
      reportNull();
    }
    ++count;
  }
  return count;
}
origin: org.codehaus.woodstox/woodstox-core-asl

if (ensureLoaded(6)) {
  int start = mInputPtr; // if we have to 'unread' chars
  if (nextTranslated() == '<'
    && nextTranslated() == '?'
    && nextTranslated() == 'x'
    && nextTranslated() == 'm'
    && nextTranslated() == 'l'
    && nextTranslated() <= CHAR_SPACE) {
    return true;
origin: woodstox/wstx-asl

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

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

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

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

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

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

protected void skipTranslatedLF(int lf)
  throws IOException, WstxException
{
  if (lf == CHAR_CR) {
    int c = nextTranslated();
    if (c != CHAR_LF) {
      mInputPtr -= 1;
    }
  }
  ++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

c = nextTranslated();
if (c ==  CHAR_CR || c == CHAR_LF) {
  skipTranslatedLF(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: 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: 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: 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.ioStreamBootstrappernextTranslated

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

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 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