Class JSONStringReader
- java.lang.Object
-
- java.io.Reader
-
- org.apache.manifoldcf.connectorcommon.jsongen.JSONReader
-
- org.apache.manifoldcf.connectorcommon.jsongen.JSONStringReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Readable
public class JSONStringReader extends JSONReader
This class describes a JSON string reader.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
escapedChar
protected java.io.Reader
inputReader
protected int
state
protected static int
STATE_1ST
protected static int
STATE_2ND
protected static int
STATE_3RD
protected static int
STATE_4TH
protected static int
STATE_DONE
protected static int
STATE_NEXTCHAR
protected static int
STATE_PREQUOTE
protected static int
STATE_U
-
Constructor Summary
Constructors Constructor Description JSONStringReader(java.io.Reader value)
JSONStringReader(java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
-
Methods inherited from class org.apache.manifoldcf.connectorcommon.jsongen.JSONReader
close, read
-
-
-
-
Field Detail
-
STATE_PREQUOTE
protected static final int STATE_PREQUOTE
- See Also:
- Constant Field Values
-
STATE_U
protected static final int STATE_U
- See Also:
- Constant Field Values
-
STATE_1ST
protected static final int STATE_1ST
- See Also:
- Constant Field Values
-
STATE_2ND
protected static final int STATE_2ND
- See Also:
- Constant Field Values
-
STATE_3RD
protected static final int STATE_3RD
- See Also:
- Constant Field Values
-
STATE_4TH
protected static final int STATE_4TH
- See Also:
- Constant Field Values
-
STATE_NEXTCHAR
protected static final int STATE_NEXTCHAR
- See Also:
- Constant Field Values
-
STATE_DONE
protected static final int STATE_DONE
- See Also:
- Constant Field Values
-
inputReader
protected final java.io.Reader inputReader
-
state
protected int state
-
escapedChar
protected java.lang.String escapedChar
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classJSONReader
- Throws:
java.io.IOException
-
-