/** * Helper method called at point when all input has been exhausted and * input feeder has indicated no more input will be forthcoming. */ protected final JsonToken _eofAsNextToken() throws IOException { _majorState = MAJOR_CLOSED; if (!_parsingContext.inRoot()) { _handleEOF(); } close(); return (_currToken = null); }
/** * Helper method called at point when all input has been exhausted and * input feeder has indicated no more input will be forthcoming. */ protected final JsonToken _eofAsNextToken() throws IOException { _majorState = MAJOR_CLOSED; if (!_parsingContext.inRoot()) { _handleEOF(); } close(); return (_currToken = null); }
/** * Method called when an EOF is encountered between tokens. * If so, it may be a legitimate EOF, but only iff there * is no open non-root context. */ @Override protected void _handleEOF() throws JsonParseException { if (!_parsingContext.inRoot()) { String marker = _parsingContext.inArray() ? "Array" : "Object"; _reportInvalidEOF(String.format( ": expected close marker for %s (start marker at %s)", marker, _parsingContext.getStartLocation(_getSourceReference())), null); } }
/** * Method called when an EOF is encountered between tokens. * If so, it may be a legitimate EOF, but only iff there * is no open non-root context. */ @Override protected void _handleEOF() throws JsonParseException { if (!_parsingContext.inRoot()) { String marker = _parsingContext.inArray() ? "Array" : "Object"; _reportInvalidEOF(String.format( ": expected close marker for %s (start marker at %s)", marker, _parsingContext.getStartLocation(_getSourceReference())), null); } }
if (_parsingContext.inRoot()) { _verifyRootSpace();
if (_parsingContext.inRoot()) { _verifyRootSpace(); } else {
if (_parsingContext.inRoot()) { _verifyRootSpace();
if (_parsingContext.inRoot()) { _verifyRootSpace();
if (_parsingContext.inRoot()) { _verifyRootSpace(c);
if (_parsingContext.inRoot()) { _verifyRootSpace(); } else {
if (_parsingContext.inRoot()) { _verifyRootSpace(ch);
if (_parsingContext.inRoot()) { _verifyRootSpace(_inputBuffer[_inputPtr++] & 0xFF);
if (_parsingContext.inRoot()) { _verifyRootSpace(c);
if (_parsingContext.inRoot()) { _verifyRootSpace(ch);
if (_parsingContext.inRoot()) { _verifyRootSpace(c);
if (_parsingContext.inRoot()) { _verifyRootSpace(_inputBuffer[_inputPtr++] & 0xFF);
if (_parsingContext.inRoot()) { _verifyRootSpace(ch);
if (_parsingContext.inRoot()) { _verifyRootSpace(ch);
--_inputPtr; if (_parsingContext.inRoot()) { _verifyRootSpace(c);
if (_parsingContext.inRoot()) { _verifyRootSpace(c);