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

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

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

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

/**
 * @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

/**
 * @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 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

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: 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

reportNull();
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 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: woodstox/wstx-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: com.fasterxml.woodstox/woodstox-core

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-lgpl

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: woodstox/wstx-lgpl

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: Nextdoor/bender

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: FasterXML/woodstox

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-lgpl

/**
 * @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: woodstox/wstx-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: woodstox/wstx-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 < mInputLen) ?
      mByteBuffer[mInputPtr++] : nextByte();
    
    if (b == BYTE_NULL) {
      reportNull();
    }
    if ((b & 0xFF) != expected.charAt(ptr)) {
      return (b & 0xFF);
    }
  }
  return CHAR_NULL;
}
origin: com.fasterxml.woodstox/woodstox-core

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: com.fasterxml.woodstox/woodstox-core

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;
}
com.ctc.wstx.ioStreamBootstrapperreportNull

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

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • JTable (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • CodeWhisperer alternatives
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