com.esri.arcgis.system
Interface IJSONWriter2

All Superinterfaces:
IJSONWriter, Serializable
All Known Implementing Classes:
JSONWriter

public interface IJSONWriter2
extends IJSONWriter, Serializable

Product Availability

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


Method Summary
 void reset()
          Resets IJSONWriter's internal state.
 void writeDoubleEx(String name, double value, int precision)
          Writes a double with specified number of digits after decimal point.
 void writeDoubleValEx(double value, int precision)
          Writes a double in array with specified number of digits after decimal point.
 void writeRawString(String name, String value)
          Writes a raw property without any processing.
 void writeRawStringVal(String value)
          Writes a raw value without any processing.
 
Methods inherited from interface com.esri.arcgis.system.IJSONWriter
endArray, endObject, getStream, getStringBuffer, setFormatted, setIndent, startArray, startObject, writeBinary, writeBinaryVal, writeBoolean, writeBooleanVal, writeByte, writeByteVal, writeDate, writeDateVal, writeDouble, writeDoubleVal, writeFloat, writeFloatVal, writeInteger, writeIntegerVal, writeNull, writeNullVal, writeShort, writeShortVal, writeString, writeStringVal, writeTo, writeToString, writeVariant, writeVariantVal
 

Method Detail

reset

void reset()
           throws IOException,
                  AutomationException
Resets IJSONWriter's internal state.

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.

writeRawString

void writeRawString(String name,
                    String value)
                    throws IOException,
                           AutomationException
Writes a raw property without any processing. Use to insert JSON sub-object or sub-array strings only.

Product Availability

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

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

writeRawStringVal

void writeRawStringVal(String value)
                       throws IOException,
                              AutomationException
Writes a raw value without any processing. Use to insert JSON sub-object or sub-array strings only.

Product Availability

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

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

writeDoubleValEx

void writeDoubleValEx(double value,
                      int precision)
                      throws IOException,
                             AutomationException
Writes a double in array with specified number of digits after decimal point.

Product Availability

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

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

writeDoubleEx

void writeDoubleEx(String name,
                   double value,
                   int precision)
                   throws IOException,
                          AutomationException
Writes a double with specified number of digits after decimal point.

Product Availability

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

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