com.develop.jawin
Class Variant

java.lang.Object
  extended bycom.develop.jawin.Variant
All Implemented Interfaces:
VarTypes, WellKnownGUIDs
Direct Known Subclasses:
ObjectRef

public class Variant
extends java.lang.Object
implements VarTypes, WellKnownGUIDs

Variant marshaller


Field Summary
static int SIZEOF
          size of data
 
Fields inherited from interface com.develop.jawin.constants.VarTypes
VARIANT_FALSE, VARIANT_TRUE, VT_ARRAY, VT_BLOB, VT_BLOB_OBJECT, VT_BOOL, VT_BSTR, VT_BYREF, VT_CARRAY, VT_CF, VT_CLSID, VT_CY, VT_DATE, VT_DECIMAL, VT_DISPATCH, VT_EMPTY, VT_ERROR, VT_FILETIME, VT_HRESULT, VT_I1, VT_I2, VT_I4, VT_I8, VT_ILLEGAL, VT_ILLEGALMASKED, VT_INT, VT_LPSTR, VT_LPWSTR, VT_NULL, VT_PTR, VT_R4, VT_R8, VT_RESERVED, VT_SAFEARRAY, VT_STORAGE, VT_STORED_OBJECT, VT_STREAM, VT_STREAMED_OBJECT, VT_TYPEMASK, VT_UI1, VT_UI2, VT_UI4, VT_UI8, VT_UINT, VT_UNKNOWN, VT_USERDEFINED, VT_VARIANT, VT_VECTOR, VT_VOID
 
Fields inherited from interface com.develop.jawin.constants.WellKnownGUIDs
IID_IClassFactory, IID_IDispatch, IID_IEnumVariant, IID_IUnknown
 
Constructor Summary
Variant()
           
 
Method Summary
static void marshalIn(java.lang.Object var, LittleEndianOutputStream leos)
          Marshals object
static void marshalInRef(ObjectRef objRef, LittleEndianOutputStream leos)
          Marshals ref.
static java.lang.Object marshalOut(LittleEndianInputStream leis)
          Unmarshals object
static java.lang.Object marshalOutArray(short vt, LittleEndianInputStream leis)
          unmarshals array
static void marshalOutArraySkip(short vt, LittleEndianInputStream leis)
           
static java.lang.Object marshalOutRef(short vtType, LittleEndianInputStream leis)
          unmarshals ref.
static void marshalOutSkip(LittleEndianInputStream leis)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIZEOF

public static final int SIZEOF
size of data

See Also:
Constant Field Values
Constructor Detail

Variant

public Variant()
Method Detail

marshalInRef

public static void marshalInRef(ObjectRef objRef,
                                LittleEndianOutputStream leos)
                         throws COMException
Marshals ref. object

Parameters:
objRef - referenced object
leos - output stream
Throws:
COMException - JNI/COM exception

marshalIn

public static void marshalIn(java.lang.Object var,
                             LittleEndianOutputStream leos)
                      throws COMException
Marshals object

Parameters:
var - object
leos - output stream
Throws:
COMException - JNI/COM exception

marshalOutArray

public static java.lang.Object marshalOutArray(short vt,
                                               LittleEndianInputStream leis)
                                        throws COMException,
                                               java.io.IOException
unmarshals array

Parameters:
vt - array type
leis - input stream
Returns:
object
Throws:
COMException - COM/JNI exception
java.io.IOException - I/O exception

marshalOutRef

public static java.lang.Object marshalOutRef(short vtType,
                                             LittleEndianInputStream leis)
                                      throws COMException
unmarshals ref. object

Parameters:
leis - input stream
Returns:
object
Throws:
COMException - JNI/COM exception

marshalOut

public static java.lang.Object marshalOut(LittleEndianInputStream leis)
                                   throws COMException
Unmarshals object

Parameters:
leis - input stream
Returns:
object
Throws:
COMException - JNI/COM exception

marshalOutSkip

public static void marshalOutSkip(LittleEndianInputStream leis)
                           throws COMException
Throws:
COMException

marshalOutArraySkip

public static void marshalOutArraySkip(short vt,
                                       LittleEndianInputStream leis)
                                throws COMException,
                                       java.io.IOException
Throws:
COMException
java.io.IOException


Composia Soft Ltd. Designed by Vitally Shelest. .