public static AbstractFieldType getFieldType(final int type) throws ImagingException {
        for (final AbstractFieldType abstractFieldType : ANY) {
            if (abstractFieldType.getType() == type) {
                return abstractFieldType;
            }
        }
        throw new ImagingException("Field type " + type + " is unsupported");
    }
Gets a known field type.

@param type the type to find.
@return the matching field type.
@throws ImagingException thrown when not found.
src/main/java/org/apache/commons/imaging/formats/tiff/fieldtypes/AbstractFieldType.java