protected void _skipString ( ) throws IOException , JsonParseException { _tokenIncomplete = false ; int inputPtr = _inputPtr ; int inputLen = _inputEnd ; char [ ] inputBuffer = _inputBuffer ; while ( true ) { if ( inputPtr >= inputLen ) { _inputPtr = inputPtr ; if ( ! loadMore ( ) ) { _reportInvalidEOF ( ": was expecting closing quote for a string value" ) ; } inputPtr = _inputPtr ; inputLen = _inputEnd ; } char c = inputBuffer [ inputPtr ++ ] ; if ( c == INT_APOSTROPHE ) { _inputPtr = inputPtr ; break ; } else if ( c == ' ' ) { _inputPtr = inputPtr ; _decodeEscaped ( ) ; inputPtr = _inputPtr ; inputLen = _inputEnd ; } } }
Method called to skim through rest of unparsed String value if it is not needed . This can be done bit faster if contents need not be stored for future access .