|
ION Java User's Guide: ION Java Class and Method Reference |
|
The getShortArray() method returns the short array value of the variable. If the value is not of type short, "java.lang.ClassCastException" exception will be thrown. To avoid this exception, check the type of the data and call the correct method for that type.
public final short[] getShortArray()
The method returns the short array value of the variable.
None.
try {
short s[] = myVariable.getShortArray();
}catch(IONNotAnArrayException e){
System.err.println("Variable is not an array");
}
IDL Online Help (March 06, 2007)