mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-07 03:06:03 +08:00
long
This commit is contained in:
18
JSONTokener.java
Executable file → Normal file
18
JSONTokener.java
Executable file → Normal file
@@ -36,16 +36,16 @@ SOFTWARE.
|
|||||||
* it. It is used by the JSONObject and JSONArray constructors to parse
|
* it. It is used by the JSONObject and JSONArray constructors to parse
|
||||||
* JSON source strings.
|
* JSON source strings.
|
||||||
* @author JSON.org
|
* @author JSON.org
|
||||||
* @version 2011-11-24
|
* @version 2012-02-16
|
||||||
*/
|
*/
|
||||||
public class JSONTokener {
|
public class JSONTokener {
|
||||||
|
|
||||||
private int character;
|
private long character;
|
||||||
private boolean eof;
|
private boolean eof;
|
||||||
private int index;
|
private long index;
|
||||||
private int line;
|
private long line;
|
||||||
private char previous;
|
private char previous;
|
||||||
private final Reader reader;
|
private Reader reader;
|
||||||
private boolean usePrevious;
|
private boolean usePrevious;
|
||||||
|
|
||||||
|
|
||||||
@@ -400,9 +400,9 @@ public class JSONTokener {
|
|||||||
public char skipTo(char to) throws JSONException {
|
public char skipTo(char to) throws JSONException {
|
||||||
char c;
|
char c;
|
||||||
try {
|
try {
|
||||||
int startIndex = this.index;
|
long startIndex = this.index;
|
||||||
int startCharacter = this.character;
|
long startCharacter = this.character;
|
||||||
int startLine = this.line;
|
long startLine = this.line;
|
||||||
this.reader.mark(1000000);
|
this.reader.mark(1000000);
|
||||||
do {
|
do {
|
||||||
c = this.next();
|
c = this.next();
|
||||||
|
Reference in New Issue
Block a user