Class JSONNameValueReader
- java.lang.Object
-
- java.io.Reader
-
- org.apache.manifoldcf.connectorcommon.jsongen.JSONReader
-
- org.apache.manifoldcf.connectorcommon.jsongen.JSONNameValueReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Readable
public class JSONNameValueReader extends JSONReader
This class describes a JSON name/value object reader.
-
-
Field Summary
Fields Modifier and Type Field Description protected JSONReader
name
protected int
state
protected static int
STATE_DONE
protected static int
STATE_NAME
protected static int
STATE_VALUE
protected JSONReader
value
-
Constructor Summary
Constructors Constructor Description JSONNameValueReader(JSONStringReader name, JSONReader 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_NAME
protected static final int STATE_NAME
- See Also:
- Constant Field Values
-
STATE_VALUE
protected static final int STATE_VALUE
- See Also:
- Constant Field Values
-
STATE_DONE
protected static final int STATE_DONE
- See Also:
- Constant Field Values
-
name
protected final JSONReader name
-
value
protected final JSONReader value
-
state
protected int state
-
-
Constructor Detail
-
JSONNameValueReader
public JSONNameValueReader(JSONStringReader name, JSONReader value)
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classJSONReader
- Throws:
java.io.IOException
-
-