|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.system.JSONReader
public class JSONReader
A sequential JSON Reader.
Constructor Summary | |
---|---|
JSONReader()
Constructs a JSONReader using ArcGIS Engine. |
|
JSONReader(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. JSONReader theJSONReader = (JSONReader) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
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. |
static String |
getClsid()
getClsid. |
int |
getCurrentTokenType()
Obtains type of current token. |
IStream |
getStream()
Obtains underlying stream. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
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. |
Object |
parseJSONString(String json)
Parses JSON string into memory. |
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 |
readValueEx(Object[] pVal,
int[] precision)
Obtains array or property value as Variant along with precision if it is a double. |
void |
removeAllBookmarks()
Removes all bookmarks. |
void |
removeBookmark(String name)
Moves the reader back to a token that has a bookmark with the given name. |
void |
returnToBookmark(String name)
Moves the reader back to a token that has a bookmark with the given name. |
void |
setBookmark(String name)
Creates a bookmark on the current token and assigns it a name. |
void |
skipUntilArrayEnds()
Skips the rest of the current object, including closing bracket. |
void |
skipUntilObjectEnds()
Skips the rest of the current object, including closing bracket. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public JSONReader() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic JSONReader(Object obj) throws IOException
JSONReader theJSONReader = (JSONReader) obj;
obj
to JSONReader
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void readFrom(IStream inputStream) throws IOException, AutomationException
readFrom
in interface IJSONReader
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.public void readFromString(String text) throws IOException, AutomationException
readFromString
in interface IJSONReader
text
- The text (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStream getStream() throws IOException, AutomationException
getStream
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void read() throws IOException, AutomationException
read
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getCurrentTokenType() throws IOException, AutomationException
getCurrentTokenType
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isStartOfObject() throws IOException, AutomationException
isStartOfObject
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEndOfObject() throws IOException, AutomationException
isEndOfObject
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isStartOfArray() throws IOException, AutomationException
isStartOfArray
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEndOfArray() throws IOException, AutomationException
isEndOfArray
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isString() throws IOException, AutomationException
isString
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isNumber() throws IOException, AutomationException
isNumber
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isBoolean() throws IOException, AutomationException
isBoolean
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isNull() throws IOException, AutomationException
isNull
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object readValue() throws IOException, AutomationException
readValue
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String readPropertyName() throws IOException, AutomationException
readPropertyName
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String readValueAsString() throws IOException, AutomationException
readValueAsString
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int readValueAsLong() throws IOException, AutomationException
readValueAsLong
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double readValueAsDouble() throws IOException, AutomationException
readValueAsDouble
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean readValueAsBoolean() throws IOException, AutomationException
readValueAsBoolean
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Date readValueAsDate() throws IOException, AutomationException
readValueAsDate
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean findProperty(String propname) throws IOException, AutomationException
findProperty
in interface IJSONReader
propname
- The propname (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int findProperties(IStringArray propnames) throws IOException, AutomationException
findProperties
in interface IJSONReader
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.public void skipUntilObjectEnds() throws IOException, AutomationException
skipUntilObjectEnds
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void skipUntilArrayEnds() throws IOException, AutomationException
skipUntilArrayEnds
in interface IJSONReader
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object parseJSONString(String json) throws IOException, AutomationException
parseJSONString
in interface IJSONReader2
json
- The json (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBookmark(String name) throws IOException, AutomationException
setBookmark
in interface IJSONReader2
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void returnToBookmark(String name) throws IOException, AutomationException
returnToBookmark
in interface IJSONReader2
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeBookmark(String name) throws IOException, AutomationException
removeBookmark
in interface IJSONReader2
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeAllBookmarks() throws IOException, AutomationException
removeAllBookmarks
in interface IJSONReader2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void readValueEx(Object[] pVal, int[] precision) throws IOException, AutomationException
readValueEx
in interface IJSONReader2
pVal
- A Variant (out: use single element array)precision
- The precision (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
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 |