134135136137138139140141142143144
} int c; try { c = this.reader.read(); } catch (IOException exc) { throw new JsonException(exc); } if (c <= 0) { // End of stream this.lastChar = 0; return 0;
194195196197198199200201202203204
int len; while ((pos < n) && ((len = reader.read(buffer, pos, n - pos)) != -1)) { pos += len; } } catch (IOException exc) { throw new JsonException(exc); } this.index += pos; if (pos < n) { throw syntaxError("Substring bounds error");
401402403404405406407408409410411
this.index = startIndex; return c; } } while (c != to); } catch (IOException exc) { throw new JsonException(exc); } back(); return c; }
416417418419420421422
* @param message * The error message. * @return A JsonException object, suitable for throwing */ public JsonException syntaxError(String message) { return new JsonException(message + toString()); }