MCPcopy Create free account
hub / github.com/apache/solr / getCharExpected

Method getCharExpected

solr/solrj/src/java/org/noggit/JSONParser.java:344–351  ·  view source on GitHub ↗
(int expected)

Source from the content-addressed store, hash-verified

342 }
343
344 protected int getCharExpected(int expected) throws IOException {
345 for (; ; ) {
346 int ch = getChar();
347 if (ch == expected) return expected;
348 if (ch == ' ') continue;
349 return getCharNWS(ch);
350 }
351 }
352
353 protected void getNewlineComment() throws IOException {
354 // read a # or a //, so go until newline

Callers 1

nextEventMethod · 0.95

Calls 2

getCharMethod · 0.95
getCharNWSMethod · 0.95

Tested by

no test coverage detected