DataType getDataType ( int format ) { DataType p ; switch ( format ) { case 1 : // 8-bit signed integer format. p = DataType . SHORT ; break ; case 2 : // 16-bit signed integer format. p = DataType . FLOAT ; break ; case 3 : // 32-bit signed integer format. p = DataType . LONG ; break ; case 4 : // 32-bit IEEE float format. p = DataType . FLOAT ; break ; case 5 : // 16-bit IEEE float format. p = DataType . DOUBLE ; break ; default : p = null ; break ; } //end of switch return p ; }
Return the string of entity ID for the Dorade image file