Class JSONArrayReader
- java.lang.Object
-
- java.io.Reader
-
- org.apache.manifoldcf.connectorcommon.jsongen.JSONReader
-
- org.apache.manifoldcf.connectorcommon.jsongen.JSONArrayReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Readable
public class JSONArrayReader extends JSONReader
This class describes a JSON array reader.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
elementIndex
protected java.util.List<JSONReader>
elements
protected int
state
protected static int
STATE_DONE
protected static int
STATE_ELEMENT
protected static int
STATE_PREBRACKET
protected static int
STATE_PREEND
-
Constructor Summary
Constructors Constructor Description JSONArrayReader()
JSONArrayReader(JSONReader[] elements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONArrayReader
addArrayElement(JSONReader element)
int
read()
-
Methods inherited from class org.apache.manifoldcf.connectorcommon.jsongen.JSONReader
close, read
-
-
-
-
Field Detail
-
STATE_PREBRACKET
protected static final int STATE_PREBRACKET
- See Also:
- Constant Field Values
-
STATE_ELEMENT
protected static final int STATE_ELEMENT
- 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
-
elements
protected final java.util.List<JSONReader> elements
-
elementIndex
protected int elementIndex
-
-
Constructor Detail
-
JSONArrayReader
public JSONArrayReader()
-
JSONArrayReader
public JSONArrayReader(JSONReader[] elements)
-
-
Method Detail
-
addArrayElement
public JSONArrayReader addArrayElement(JSONReader element)
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classJSONReader
- Throws:
java.io.IOException
-
-