Package org.anchoranalysis.core.format
Class FileFormatFactory
Object
FileFormatFactory
Creates a
FileFormat from a string.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<ImageFileFormat> createImageFormat(String identifier) Creates aImageFileFormatfrom an identifier string if its equal to any extension associated with the image file formats inImageFileFormat.
-
Method Details
-
createImageFormat
Creates aImageFileFormatfrom an identifier string if its equal to any extension associated with the image file formats inImageFileFormat.The case of the identifier is irrelevant.
- Parameters:
identifier- an identifier of an image file-format that should match an extension (e.g. jpg or GIF or bmp)- Returns:
- an
ImageFileFormatthat matchesidentifierif it exists.
-