Class JSONObjectReader
- java.lang.Object
-
- java.io.Reader
-
- org.apache.manifoldcf.connectorcommon.jsongen.JSONReader
-
- org.apache.manifoldcf.connectorcommon.jsongen.JSONObjectReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Readable
public class JSONObjectReader extends JSONReader
This class describes a JSON object reader.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<JSONReader>
pairs
protected int
readerIndex
protected int
state
protected static int
STATE_DONE
protected static int
STATE_PAIRBEGIN
protected static int
STATE_PREBRACE
protected static int
STATE_PREEND
-
Constructor Summary
Constructors Constructor Description JSONObjectReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONObjectReader
addNameValuePair(JSONNameValueReader pair)
int
read()
-
Methods inherited from class org.apache.manifoldcf.connectorcommon.jsongen.JSONReader
close, read
-
-
-
-
Field Detail
-
STATE_PREBRACE
protected static final int STATE_PREBRACE
- See Also:
- Constant Field Values
-
STATE_PAIRBEGIN
protected static final int STATE_PAIRBEGIN
- See Also:
- Constant Field Values
-
STATE_PREEND
protected static final int STATE_PREEND
- See Also:
- Constant Field Values
-
STATE_DONE
protected static final int STATE_DONE
- See Also:
- Constant Field Values
-
state
protected int state
-
pairs
protected final java.util.List<JSONReader> pairs
-
readerIndex
protected int readerIndex
-
-
Method Detail
-
addNameValuePair
public JSONObjectReader addNameValuePair(JSONNameValueReader pair)
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classJSONReader
- Throws:
java.io.IOException
-
-