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

getDimensionedIntArray()

Returns the integer array value of the variable. The result contains the same number of dimensions as the variable.

Syntax

public final Object getDimensionedIntArray

(where Object can be a 1- to 8-dimensional array of Java primitive type 'int')

Return

The method returns the multidimensional int array value of the variable.

Arguments

None.

Exceptions

IONNotAnArrayException

Example

IONVariable myVariable = 
c_ionCon.getIDLVariable("my3dIdlLongArr");  
int i3d[][][];  
try {  
i3d = (int[][][])myVariable.getDimensionedIntArray();  
} catch(IONNotAnArrayException e) {  
System.err.println("Variable is not an array");  
}  

  IDL Online Help (March 06, 2007)