com.esri.arcgis.system
Interface IJSONReader2

All Superinterfaces:
IJSONReader, Serializable
All Known Implementing Classes:
JSONReader

public interface IJSONReader2
extends IJSONReader, Serializable

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 Object parseJSONString(String json)
          Parses JSON string into memory.
 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.
 
Methods inherited from interface com.esri.arcgis.system.IJSONReader
findProperties, findProperty, getCurrentTokenType, getStream, isBoolean, isEndOfArray, isEndOfObject, isNull, isNumber, isStartOfArray, isStartOfObject, isString, read, readFrom, readFromString, readPropertyName, readValue, readValueAsBoolean, readValueAsDate, readValueAsDouble, readValueAsLong, readValueAsString, skipUntilArrayEnds, skipUntilObjectEnds
 

Method Detail

parseJSONString

Object parseJSONString(String json)
                       throws IOException,
                              AutomationException
Parses JSON string into memory. Returns either IJSONObject or IJSONArray in a 'root' parameter. Doesn't change state of existing IJSONReader2 instance.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
json - The json (in)
Returns:
A reference to another Object (IUnknown)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setBookmark

void setBookmark(String name)
                 throws IOException,
                        AutomationException
Creates a bookmark on the current token and assigns it a name. Only works if you use ReadFromString(), otherwise returns E_FAIL.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
name - The name (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

returnToBookmark

void returnToBookmark(String name)
                      throws IOException,
                             AutomationException
Moves the reader back to a token that has a bookmark with the given name.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
name - The name (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeBookmark

void removeBookmark(String name)
                    throws IOException,
                           AutomationException
Moves the reader back to a token that has a bookmark with the given name.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
name - The name (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeAllBookmarks

void removeAllBookmarks()
                        throws IOException,
                               AutomationException
Removes all bookmarks.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

readValueEx

void readValueEx(Object[] pVal,
                 int[] precision)
                 throws IOException,
                        AutomationException
Obtains array or property value as Variant along with precision if it is a double. Advances to the next token.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
pVal - A Variant (out: use single element array)
precision - The precision (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.