Package org.noggit
Class JSONParserWS
- java.lang.Object
-
- org.noggit.JSONParser
-
- org.noggit.JSONParserWS
-
public class JSONParserWS extends JSONParser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJSONParserWS.WhitespaceHandler-
Nested classes/interfaces inherited from class org.noggit.JSONParser
JSONParser.ParseException
-
-
Field Summary
Fields Modifier and Type Field Description private CharArroutWSprivate JSONParserWS.WhitespaceHandlerwsHandler-
Fields inherited from class org.noggit.JSONParser
ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER, ALLOW_COMMENTS, ALLOW_EXTRA_COMMAS, ALLOW_MISSING_COLON_COMMA_BEFORE_OBJECT, ALLOW_SINGLE_QUOTES, ALLOW_UNQUOTED_KEYS, ALLOW_UNQUOTED_STRING_VALUES, ARRAY_END, ARRAY_START, BIGNUMBER, BOOLEAN, buf, end, eof, EOF, event, flags, FLAGS_DEFAULT, FLAGS_STRICT, gpos, in, LONG, missingOpeningBrace, NULL, NUMBER, OBJECT_END, OBJECT_START, OPTIONAL_OUTER_BRACES, start, STRING, stringTerm
-
-
Constructor Summary
Constructors Constructor Description JSONParserWS(char[] data, int start, int end)JSONParserWS(java.io.Reader in)JSONParserWS(java.io.Reader in, char[] buffer)JSONParserWS(java.lang.String data)JSONParserWS(java.lang.String data, int start, int end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetCharNWS()protected voidgetNewlineComment()protected voidgetSlashComment()voidsetWhitespaceHandler(JSONParserWS.WhitespaceHandler wsHandler)-
Methods inherited from class org.noggit.JSONParser
err, fill, getBoolean, getChar, getCharExpected, getCharNWS, getDouble, getEventString, getFlags, getLevel, getLong, getNull, getNumberChars, getNumberChars, getPosition, getString, getString, getStringChars, handleNonDoubleQuoteString, isWhitespace, lastEvent, matchBareWord, nextEvent, setFlags, toString, wasKey
-
-
-
-
Field Detail
-
outWS
private CharArr outWS
-
wsHandler
private JSONParserWS.WhitespaceHandler wsHandler
-
-
Constructor Detail
-
JSONParserWS
public JSONParserWS(java.io.Reader in)
-
JSONParserWS
public JSONParserWS(java.io.Reader in, char[] buffer)
-
JSONParserWS
public JSONParserWS(char[] data, int start, int end)
-
JSONParserWS
public JSONParserWS(java.lang.String data)
-
JSONParserWS
public JSONParserWS(java.lang.String data, int start, int end)
-
-
Method Detail
-
setWhitespaceHandler
public void setWhitespaceHandler(JSONParserWS.WhitespaceHandler wsHandler)
-
getCharNWS
protected int getCharNWS() throws java.io.IOException- Overrides:
getCharNWSin classJSONParser- Throws:
java.io.IOException
-
getNewlineComment
protected void getNewlineComment() throws java.io.IOException- Overrides:
getNewlineCommentin classJSONParser- Throws:
java.io.IOException
-
getSlashComment
protected void getSlashComment() throws java.io.IOException- Overrides:
getSlashCommentin classJSONParser- Throws:
java.io.IOException
-
-