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 class
JSONParserWS.WhitespaceHandler
-
Nested classes/interfaces inherited from class org.noggit.JSONParser
JSONParser.ParseException
-
-
Field Summary
Fields Modifier and Type Field Description private CharArr
outWS
private JSONParserWS.WhitespaceHandler
wsHandler
-
Fields inherited from class org.noggit.JSONParser
ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER, ALLOW_COMMENTS, ALLOW_EXTRA_COMMAS, 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, NULL, NUMBER, OBJECT_END, OBJECT_START, 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 int
getCharNWS()
protected void
getNewlineComment()
protected void
getSlashComment()
void
setWhitespaceHandler(JSONParserWS.WhitespaceHandler wsHandler)
-
Methods inherited from class org.noggit.JSONParser
err, fill, getBoolean, getChar, getCharNWS, getDouble, getEventString, getFlags, getLevel, getLong, getNull, getNumberChars, getNumberChars, getPosition, getString, getString, getStringChars, isWhitespace, lastEvent, 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:
getCharNWS
in classJSONParser
- Throws:
java.io.IOException
-
getNewlineComment
protected void getNewlineComment() throws java.io.IOException
- Overrides:
getNewlineComment
in classJSONParser
- Throws:
java.io.IOException
-
getSlashComment
protected void getSlashComment() throws java.io.IOException
- Overrides:
getSlashComment
in classJSONParser
- Throws:
java.io.IOException
-
-