com.esri.arcgis.system
Interface IJSONReader2

All Superinterfaces:
IJSONReader, java.io.Serializable
All Known Subinterfaces:
IJSONReader3
All Known Implementing Classes:
IJSONReader2Proxy, IJSONReader3Proxy, JSONReader

public interface IJSONReader2
extends IJSONReader, java.io.Serializable

COM Interface 'IJSONReader2'. Generated 3/19/2015 1:21:00 PM from 'C:\ArcGIS\COM\esriSystem.olb'

Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =


Field Summary
static java.lang.String IID
          Deprecated. Internal use only
static int IID2c573605_c449_47e3_a483_f441192840fa
           
static int xxDummy
          Deprecated. Internal use only
 
Fields inherited from interface com.esri.arcgis.system.IJSONReader
IID48105a80_e0dc_4d69_bb61_3df74cafa52c
 
Method Summary
 java.lang.Object parseJSONString(java.lang.String json)
          Parses JSON string into memory.
 void readValueEx(java.lang.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(java.lang.String name)
          Moves the reader back to a token that has a bookmark with the given name.
 void returnToBookmark(java.lang.String name)
          Moves the reader back to a token that has a bookmark with the given name.
 void setBookmark(java.lang.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
 

Field Detail

IID2c573605_c449_47e3_a483_f441192840fa

static final int IID2c573605_c449_47e3_a483_f441192840fa
See Also:
Constant Field Values

xxDummy

static final int xxDummy
Deprecated. Internal use only
See Also:
Constant Field Values

IID

static final java.lang.String IID
Deprecated. Internal use only
See Also:
Constant Field Values
Method Detail

parseJSONString

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

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

setBookmark

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

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

returnToBookmark

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

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

removeBookmark

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

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

removeAllBookmarks

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

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

readValueEx

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

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