public class JSONReader extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IJSONReader, IJSONReader2, ISupportErrorInfo
Description 'A sequential JSON Reader.' 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 =
IID, IID2c573605_c449_47e3_a483_f441192840fa, xxDummyIID48105a80_e0dc_4d69_bb61_3df74cafa52cIID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy| Constructor and Description |
|---|
JSONReader()
Constructs a JSONReader using ArcGIS Engine.
|
JSONReader(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
JSONReader theJSONReader = (JSONReader) obj; |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
int |
findProperties(IStringArray propnames)
Reads current object until one of property names matches.
|
boolean |
findProperty(java.lang.String propname)
Reads current object until property name matches or object ends.
|
static java.lang.String |
getClsid()
getClsid.
|
int |
getCurrentTokenType()
Obtains type of current token.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
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.
|
java.lang.Object |
parseJSONString(java.lang.String json)
Parses JSON string into memory.
|
void |
read()
Reads next JSON token.
|
void |
readFrom(IStream inputStream)
Specifies input stream.
|
void |
readFromString(java.lang.String text)
Specifies input as string.
|
java.lang.String |
readPropertyName()
Obtains property name.
|
java.lang.Object |
readValue()
Obtains array or property value as Variant.
|
boolean |
readValueAsBoolean()
Obtains array or property value as boolean.
|
java.util.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.
|
java.lang.String |
readValueAsString()
Obtains property or array value as string.
|
void |
readValueEx(java.lang.Object[] pVal,
int[] precision)
Obtains array or property value as Variant along with precision if it is a double.
|
void |
release()
Release this COM object reference
|
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.
|
void |
skipUntilArrayEnds()
Skips the rest of the current object, including closing bracket.
|
void |
skipUntilObjectEnds()
Skips the rest of the current object, including closing bracket.
|
public JSONReader()
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOException - if there are interop problemsjava.net.UnknownHostException - if there are interop problemspublic JSONReader(java.lang.Object obj)
throws java.io.IOException
JSONReader theJSONReader = (JSONReader) obj;obj to JSONReader.obj - an object returned from ArcGIS Engine or Serverjava.io.IOException - if there are interop problemspublic static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRefpublic void release()
release in interface com.esri.arcgis.interop.RemoteObjRefpublic void readFrom(IStream inputStream) throws java.io.IOException, AutomationException
readFrom in interface IJSONReaderinputStream - A reference to a com.esri.arcgis.system.IStream (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void readFromString(java.lang.String text)
throws java.io.IOException,
AutomationException
readFromString in interface IJSONReadertext - The text (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public IStream getStream() throws java.io.IOException, AutomationException
getStream in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void read()
throws java.io.IOException,
AutomationException
read in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public int getCurrentTokenType()
throws java.io.IOException,
AutomationException
getCurrentTokenType in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean isStartOfObject()
throws java.io.IOException,
AutomationException
isStartOfObject in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean isEndOfObject()
throws java.io.IOException,
AutomationException
isEndOfObject in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean isStartOfArray()
throws java.io.IOException,
AutomationException
isStartOfArray in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean isEndOfArray()
throws java.io.IOException,
AutomationException
isEndOfArray in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean isString()
throws java.io.IOException,
AutomationException
isString in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean isNumber()
throws java.io.IOException,
AutomationException
isNumber in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean isBoolean()
throws java.io.IOException,
AutomationException
isBoolean in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean isNull()
throws java.io.IOException,
AutomationException
isNull in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.Object readValue()
throws java.io.IOException,
AutomationException
readValue in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.String readPropertyName()
throws java.io.IOException,
AutomationException
readPropertyName in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.String readValueAsString()
throws java.io.IOException,
AutomationException
readValueAsString in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public int readValueAsLong()
throws java.io.IOException,
AutomationException
readValueAsLong in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public double readValueAsDouble()
throws java.io.IOException,
AutomationException
readValueAsDouble in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean readValueAsBoolean()
throws java.io.IOException,
AutomationException
readValueAsBoolean in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.util.Date readValueAsDate()
throws java.io.IOException,
AutomationException
readValueAsDate in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public boolean findProperty(java.lang.String propname)
throws java.io.IOException,
AutomationException
findProperty in interface IJSONReaderpropname - The propname (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public int findProperties(IStringArray propnames) throws java.io.IOException, AutomationException
findProperties in interface IJSONReaderpropnames - A reference to a com.esri.arcgis.system.IStringArray (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void skipUntilObjectEnds()
throws java.io.IOException,
AutomationException
skipUntilObjectEnds in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void skipUntilArrayEnds()
throws java.io.IOException,
AutomationException
skipUntilArrayEnds in interface IJSONReaderjava.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public java.lang.Object parseJSONString(java.lang.String json)
throws java.io.IOException,
AutomationException
parseJSONString in interface IJSONReader2json - The json (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void setBookmark(java.lang.String name)
throws java.io.IOException,
AutomationException
setBookmark in interface IJSONReader2name - The name (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void returnToBookmark(java.lang.String name)
throws java.io.IOException,
AutomationException
returnToBookmark in interface IJSONReader2name - The name (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void removeBookmark(java.lang.String name)
throws java.io.IOException,
AutomationException
removeBookmark in interface IJSONReader2name - The name (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void removeAllBookmarks()
throws java.io.IOException,
AutomationException
removeAllBookmarks in interface IJSONReader2java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void readValueEx(java.lang.Object[] pVal,
int[] precision)
throws java.io.IOException,
AutomationException
readValueEx in interface IJSONReader2pVal - A Variant (out: use single element array)precision - The precision (out: use single element array)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws java.io.IOException, AutomationException
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)java.io.IOException - If there are interop problems.AutomationException - If the ArcObject component throws an exception.