|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IJSONReader
Provides access to Sequential JSON Reader.
Method Summary | |
---|---|
int |
findProperties(IStringArray propnames)
Reads current object until one of property names matches. |
boolean |
findProperty(String propname)
Reads current object until property name matches or object ends. |
int |
getCurrentTokenType()
Obtains type of current token. |
IStream |
getStream()
Obtains underlying stream. |
boolean |
isBoolean()
Indicates true if current token is a property value or array value of boolean type. |
boolean |
isEndOfArray()
Indicates true if current token is ']'. |
boolean |
isEndOfObject()
Indicates true if current token is '}'. |
boolean |
isNull()
Indicates true if current token is a property value or array value and equals to null. |
boolean |
isNumber()
Indicates true if current token is a property value or array value of numeric type. |
boolean |
isStartOfArray()
Indicates true if current token is '['. |
boolean |
isStartOfObject()
Indicates true if current token is '{'. |
boolean |
isString()
Indicates true if current token is a property value or array value of type string. |
void |
read()
Reads next JSON token. |
void |
readFrom(IStream inputStream)
Specifies input stream. |
void |
readFromString(String text)
Specifies input as string. |
String |
readPropertyName()
Obtains property name. |
Object |
readValue()
Obtains array or property value as Variant. |
boolean |
readValueAsBoolean()
Obtains array or property value as boolean. |
Date |
readValueAsDate()
Obtains property or array value as date. |
double |
readValueAsDouble()
Obtains property or array value as number. |
int |
readValueAsLong()
Obtains property or array value as number. |
String |
readValueAsString()
Obtains property or array value as string. |
void |
skipUntilArrayEnds()
Skips the rest of the current object, including closing bracket. |
void |
skipUntilObjectEnds()
Skips the rest of the current object, including closing bracket. |
Method Detail |
---|
void readFrom(IStream inputStream) throws IOException, AutomationException
inputStream
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void readFromString(String text) throws IOException, AutomationException
text
- The text (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IStream getStream() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void read() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getCurrentTokenType() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isStartOfObject() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isEndOfObject() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isStartOfArray() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isEndOfArray() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isString() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isNumber() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isBoolean() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isNull() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object readValue() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String readPropertyName() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String readValueAsString() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int readValueAsLong() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double readValueAsDouble() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean readValueAsBoolean() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Date readValueAsDate() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean findProperty(String propname) throws IOException, AutomationException
propname
- The propname (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int findProperties(IStringArray propnames) throws IOException, AutomationException
propnames
- A reference to a com.esri.arcgis.system.IStringArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void skipUntilObjectEnds() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void skipUntilArrayEnds() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |