Klasse FileHandler

java.lang.Object
de.bytestore.hostinger.handler.FileHandler

public class FileHandler extends Object
  • Konstruktordetails

    • FileHandler

      public FileHandler()
  • Methodendetails

    • load

      public static void load()
    • getIcon

      public static com.vaadin.flow.component.icon.VaadinIcon getIcon(File file)
    • getIcon

      public static com.vaadin.flow.component.icon.VaadinIcon getIcon(String fileName)
    • addExtension

      public static void addExtension(String extension, String mimeType)
    • getMIMEType

      public static String getMIMEType(File file)
    • getMIMEType

      public static String getMIMEType(String fileName)
    • 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