|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.geoprocessing.GPParseString
public class GPParseString
Helper class used to parse strings based upon a token separator.
| Constructor Summary | |
|---|---|
GPParseString()
Constructs a GPParseString using ArcGIS Engine. |
|
GPParseString(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GPParseString theGPParseString = (GPParseString) obj; |
|
| Method Summary | |
|---|---|
String |
checkToken(String inChar,
boolean[] pInQuote,
boolean[] pTokenDone)
Builds a string, one character at a time, returning whether that character is quoted and whether that character is the end of delimited token. |
String |
doubleToString(double value)
Returns the double value as string. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
hashCode()
the hashcode for this object |
void |
initialize(String string,
String separator)
Initializes the geoprocessing parse string object with the string to be parsed and the string used to separate tokens. |
boolean |
isNextTokenQuoted()
Returns whether the next token to be parsed is enclosed in quotation marks. |
boolean |
needsQuote(String text)
Returns if the string needs to be quoted. |
boolean |
nextBoolean()
Returns the next token parsed from the string as a boolean. |
double |
nextDouble()
Returns the next token parsed from the string as a double. |
int |
nextLong()
Returns the next token parsed from the string as a long. |
String |
nextSimpleToken()
Returns the next simple token parsed from the string. |
String |
nextToken()
Returns the next token parsed from the string. |
String |
quoteString(String text)
Quotes the string if it needs to be quoted. |
String |
remainingText()
Returns the remaining string. |
double |
stringToDouble(String text)
Returns the string as a doulbe value. |
| 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 GPParseString()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public GPParseString(Object obj)
throws IOException
GPParseString theGPParseString = (GPParseString) obj;
obj to GPParseString.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void initialize(String string,
String separator)
throws IOException,
AutomationException
initialize in interface IGPParseStringinitialize in interface IGPParseString2string - The string (in)separator - The separator (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String nextToken()
throws IOException,
AutomationException
nextToken in interface IGPParseStringnextToken in interface IGPParseString2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String nextSimpleToken()
throws IOException,
AutomationException
nextSimpleToken in interface IGPParseStringnextSimpleToken in interface IGPParseString2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isNextTokenQuoted()
throws IOException,
AutomationException
isNextTokenQuoted in interface IGPParseStringisNextTokenQuoted in interface IGPParseString2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String checkToken(String inChar,
boolean[] pInQuote,
boolean[] pTokenDone)
throws IOException,
AutomationException
checkToken in interface IGPParseStringcheckToken in interface IGPParseString2inChar - The inChar (in)pInQuote - The pInQuote (out: use single element array)pTokenDone - The pTokenDone (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String remainingText()
throws IOException,
AutomationException
remainingText in interface IGPParseString2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double nextDouble()
throws IOException,
AutomationException
nextDouble in interface IGPParseString2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int nextLong()
throws IOException,
AutomationException
nextLong in interface IGPParseString2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean nextBoolean()
throws IOException,
AutomationException
nextBoolean in interface IGPParseString2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean needsQuote(String text)
throws IOException,
AutomationException
needsQuote in interface IGPParseString2text - The text (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String quoteString(String text)
throws IOException,
AutomationException
quoteString in interface IGPParseString2text - The text (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double stringToDouble(String text)
throws IOException,
AutomationException
stringToDouble in interface IGPParseString2text - The text (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String doubleToString(double value)
throws IOException,
AutomationException
doubleToString in interface IGPParseString2value - The value (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 | ||||||||