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 intelementIndexprotected java.util.List<JSONReader>elementsprotected intstateprotected static intSTATE_DONEprotected static intSTATE_ELEMENTprotected static intSTATE_PREBRACKETprotected static intSTATE_PREEND
-
Constructor Summary
Constructors Constructor Description JSONArrayReader()JSONArrayReader(JSONReader[] elements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONArrayReaderaddArrayElement(JSONReader element)intread()-
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:
readin classJSONReader- Throws:
java.io.IOException
-
-