public class FileFormatFactory extends Object
FileFormat
from a string.Modifier and Type | Method and Description |
---|---|
static Optional<ImageFileFormat> |
createImageFormat(String identifier)
Creates a
ImageFileFormat from an identifier string if its equal to any extension
associated with the image file formats in ImageFileFormat . |
public static Optional<ImageFileFormat> createImageFormat(String identifier)
ImageFileFormat
from an identifier string if its equal to any extension
associated with the image file formats in ImageFileFormat
.
The case of the identifier is irrelevant.
identifier
- an identifier of an image file-format that should match an extension (e.g.
jpg or GIF or bmp)ImageFileFormat
that matches identifier
if it exists.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.