Package de.bytestore.hostinger.handler
Klasse FileHandler
java.lang.Object
de.bytestore.hostinger.handler.FileHandler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic void
addExtension
(String extension, String mimeType) static com.vaadin.flow.component.icon.VaadinIcon
static com.vaadin.flow.component.icon.VaadinIcon
static String
getMIMEType
(File file) static String
getMIMEType
(String fileName) static boolean
isImage
(io.jmix.core.FileRef fileIO) Checks if the given file has an image MIME type.static void
load()
-
Konstruktordetails
-
FileHandler
public FileHandler()
-
-
Methodendetails
-
load
public static void load() -
getIcon
-
getIcon
-
addExtension
-
getMIMEType
-
getMIMEType
-
isImage
public static boolean isImage(io.jmix.core.FileRef fileIO) Checks if the given file has an image MIME type.- Parameter:
fileIO
- the name of the file to check the MIME type of- Gibt zurück:
- true if the file has an image MIME type, false otherwise
-