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 JSONReadernameprotected intstateprotected static intSTATE_DONEprotected static intSTATE_NAMEprotected static intSTATE_VALUEprotected JSONReadervalue
-
Constructor Summary
Constructors Constructor Description JSONNameValueReader(JSONStringReader name, JSONReader value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intread()-
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:
readin classJSONReader- Throws:
java.io.IOException
-
-