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 aImageFileFormat
from an identifier string if its equal to any extension associated with the image file formats inImageFileFormat
.
-
Method Details
-
createImageFormat
Creates aImageFileFormat
from 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
ImageFileFormat
that matchesidentifier
if it exists.
-