Previous ION Java User's Guide: ION Java Class and Method Reference Next

IONVariable Class

Objects of the IONVariable class provide a client-side representation of an IDL variable. IONVariable objects are used to read and write data between the IDL server and clients.


Note
IDL and Java both have a basic byte data type; however, IDL's byte is unsigned, and Java's is signed. Java does not support the concept of unsigned types. When a byte in Java is cast to an integer, the sign is preserved via sign extension. This can cause problems when transferring byte data between IDL and Java. For information on how to properly convert an IDL byte to a Java byte, see Converting Between IDL and Java Bytes.

Class Declaration

public class IONVariable
 
extends Object

Constants

The following constants are used to identify data types

Table 6-2: Constants Defining Data Types 

Table 6-2: Constants Defining Data Types 
Type
Description
TYPE_UNDEFINED
Variable is of IDL type undefined
TYPE_BYTE
Variable is of IDL type byte
TYPE_INT
Variable is of IDL type int
TYPE_LONG
Variable is of IDL type long
TYPE_FLOAT
Variable is of IDL type float
TYPE_DOUBLE
Variable is of IDL type double
TYPE_STRING
Variable is of IDL type string
TYPE_COMPLEX
Variable is of IDL type complex
TYPE_DCOMPLEX
Variable is of IDL type double complex

:

Methods

  IDL Online Help (March 06, 2007)