ActiveX to Java primitive data type conversion values
All primitive Java data types are automatically converted to native ActiveX Automation types. However, not all Automation data types are converted to Java types (for example, VT_DATE). Variant data types are used for data conversion. Variant data types are a requirement of any Automation interface, and are used automatically by Visual Basic and VBScript.
Where automatic conversion between ActiveX and Java is not possible (for Byte and Currenct), helper functions have been provided. For more information, see Helper methods for data type conversion.
This table provides details about how primitive data types are converted between Automation types and Java types.
Visual Basic Type Variant Type Java Type Byte 1 VT_I1 byte Boolean VT_BOOL boolean Currency VT_CY long Integer VT_I2 short Long VT_I4 int Currency VT_CY long Single VT_R4 float Double VT_R8 double String VT_BSTR java.lang.String String VT_BSTR char Date VT_DATE (Not applicable) 1 Byte in Visual Basic is unsigned, but the byte type in Java is signed.