public static int getDataTypeSize(int type) {
        switch (type) {

        case TYPE_BYTE:
            return 8;

        case TYPE_USHORT:
        case TYPE_SHORT:
            return 16;

        case TYPE_INT:
        case TYPE_FLOAT:
            return 32;

        case TYPE_DOUBLE:
            return 64;

        default:
            // awt.22C=Unknown data type {0}
            throw new IllegalArgumentException(Messages.getString("awt.22C", type)); //$NON-NLS-1$
        }
    }