com.esri.arcgis.system
Class VariantStreamIO

java.lang.Object
  extended by com.esri.arcgis.system.VariantStreamIO
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IDocumentVersion, IVariantStream, IVariantStreamIO, java.io.Serializable

public class VariantStreamIO
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IVariantStreamIO, IVariantStream, IDocumentVersion

COM Class 'VariantStreamIO'. Generated 3/19/2015 1:20:47 PM from 'C:\ArcGIS\COM\esriSystem.olb'

Description 'Helper object that performs stream IO for Variants.' 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 =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.system.IVariantStreamIO
IID, IID76be2722_b1f7_4fe4_b358_bfd2198cda62, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.IVariantStream
IID, IID67a4d650_69e0_11d2_8500_0000f875b9c6, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.IDocumentVersion
IID, IIDecc43c55_0148_4ec1_bf87_b9a183c5dc98, xxDummy
 
Constructor Summary
VariantStreamIO()
          Constructs a VariantStreamIO using ArcGIS Engine.
VariantStreamIO(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
VariantStreamIO theVariantStreamIO = (VariantStreamIO) obj;
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
static java.lang.String getClsid()
          getClsid.
 int getDocumentVersion()
          The version of the document to save.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int hashCode()
          the hashcode for this object
 java.lang.Object read()
          Reads a value from a stream.
 void release()
          Release a VariantStreamIO.
 void setDocumentVersion(int docVersion)
          The version of the document to save.
 void setStreamByRef(IStream rhs1)
          The stream to perform variant stream reads and writes to.
 void write(java.lang.Object value)
          Writes a value to a stream.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariantStreamIO

public VariantStreamIO()
                throws java.io.IOException,
                       java.net.UnknownHostException
Constructs a VariantStreamIO using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

VariantStreamIO

public VariantStreamIO(java.lang.Object obj)
                throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
VariantStreamIO theVariantStreamIO = (VariantStreamIO) obj;

Construct a VariantStreamIO using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to VariantStreamIO.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a VariantStreamIO.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

setStreamByRef

public void setStreamByRef(IStream rhs1)
                    throws java.io.IOException,
                           AutomationException
The stream to perform variant stream reads and writes to.

Specified by:
setStreamByRef in interface IVariantStreamIO
Parameters:
rhs1 - A reference to a com.esri.arcgis.system.IStream (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

read

public java.lang.Object read()
                      throws java.io.IOException,
                             AutomationException
Reads a value from a stream.

Specified by:
read in interface IVariantStream
Returns:
A Variant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

write

public void write(java.lang.Object value)
           throws java.io.IOException,
                  AutomationException
Writes a value to a stream.

Specified by:
write in interface IVariantStream
Parameters:
value - A Variant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDocumentVersion

public void setDocumentVersion(int docVersion)
                        throws java.io.IOException,
                               AutomationException
The version of the document to save.

Specified by:
setDocumentVersion in interface IDocumentVersion
Parameters:
docVersion - A com.esri.arcgis.system.esriArcGISVersion constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDocumentVersion

public int getDocumentVersion()
                       throws java.io.IOException,
                              AutomationException
The version of the document to save.

Specified by:
getDocumentVersion in interface IDocumentVersion
Returns:
A com.esri.arcgis.system.esriArcGISVersion constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.