Skip navigation FileNet logo
  Open Client Developer's Guide
  Search  |  Index  |  Glossary   |  
Open menu Overview
Open menu Open Client Architecture
Close menu Developing for Process
  Open menu Process Overview
  Close menu Preparing for Development
    Setup Checklist
    PJAC
    PJAC Files
    Close menu Installing the PDE
      Configuring the JRE
      Starting a Local Process Router
      Close menu Setting Up for JiGlue
        JiGlueand ASP.NET Issues
        Configuring the JiGlue COM Bridge
        JiGlue Java-COM Data Types
        JiGlue Programming Guidelines
  Open menu HTML Step and Launch Processors
  Java Processors
  Component-Integrator Work Performer
  Open menu Deploying Process Applications
Open menu Error and Exception Handling
Open menu Customizing the Framework
Globalization / Localization
Open menu General Information
   

JiGlue Java - COM Data Types

The JiGlue COM Bridge supports the following Java to COM data type conversions:

Note: Reference (non-primitive) Java data types, such as one-dimensional and multi-dimensional arrays and other Java objects, are also supported (see JiGlue COM Bridge Programming Guidelines). For additional information on JiGlue data types and developing with JiGlue, see Help for Process Developers Guide on the Process Documentation for FileNet Image Manager CD.

Caution: If you are coding in VB.NET, remember that in Visual Basic an integer (int) is a 16-bit value, whereas in Java, int is a 32-bit two's complement value; for details, see JiGlue COM Bridge Programming Guidelines.

Java Data Type

COM Data Type

Data Type
Description Size/Structure
Data Type (VT_)

boolean (java.lang.Boolean)

Boolean value true or false

Boolean (VT_I1)

char (java.lang.Char) A single character 16-bit single Unicode character
2-byte unsigned (VT_UI2)
short (java.lang.Short) Short integer 16-bit two's complement
2-byte signed integer (VT_I2)

int (java.lang.Integer)

Integer 32-bit two's complement

4-byte signed integer (VT_I4)

long (java.lang.Long) Long integer 64-bit two's complement
4-byte signed integer (VT_I4)*

float (java.lang.Float)

Single-precision floating point 32-bit IEEE 754

Float (VT_R4)

double (java.lang.Double) Double-precision floating point 64-bit IEEE 754
Double (VT_R8)

java.lang.String

Text string. String

BSTR (VT_BSTR)

java.util.Date Date Date
Date (VT_DATE)

Other Java object

Reference Reference

IDispatch (VT_DISPATCH)

*Conversion of a Java Long integer (long) to a COM 4-byte signed integer (VT_I4) may result in a loss of precision, due to the conversion from a 64-bit value to a 32-bit value.