Java org.json JSONTokener fields, constructors, methods, implement or subclass

Example usage for Java org.json JSONTokener fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.json JSONTokener.

The text is from its open source code.

Subclass

org.json.JSONTokener has subclasses.
Click this link to see all its subclasses.

Constructor

JSONTokener(String s)
Construct a JSONTokener from a string.

Method

voidback()
Back up one character.
intdehexchar(char c)
Get the hex value of a character (base16).
booleanmore()
Determine if the source string still contains characters that next() can consume.
charnext()
Get the next character in the source string.
charnext(char c)
Consume the next character, and check that it matches a specified character.
Stringnext(int n)
Get the next n characters.
charnextClean()
Get the next char in the string, skipping whitespace and comments (slashslash, slashstar, and hash).
StringnextString(char quote)
Return the characters up to the next close quote character.
StringnextTo(char d)
Get the text up but not including the specified character or the end of line, whichever comes first.
StringnextTo(String delimiters)
Get the text up but not including one of the specified delimeter characters or the end of line, whichever comes first.
ObjectnextValue()
Get the next value.
booleanskipPast(String to)
Skip characters until past the requested string.
charskipTo(char to)
Skip characters until the next character is the requested character.
JSONExceptionsyntaxError(String message)
Make a JSONException to signal a syntax error.