Class MimeUtils

java.lang.Object
ch.autumo.commons.mime.MimeUtils

public class MimeUtils extends Object
MIME type utils.
  • Field Details

    • mimeTextList

      public static List<String> mimeTextList
      Allowed text mime types.
    • mimeOctetList

      public static List<String> mimeOctetList
      Allowed octet mime types.
    • mimeArchiveList

      public static List<String> mimeArchiveList
      Allowed archive mime types.
  • Constructor Details

    • MimeUtils

      public MimeUtils()
  • Method Details

    • isMimeTypeText

      public static boolean isMimeTypeText(String mimeType)
      Is supported text mime type?
      Parameters:
      mimeType - mime type
      Returns:
      true if so
    • isMimeTypeOctet

      public static boolean isMimeTypeOctet(String mimeType)
      Is supported octet-stream mime type?
      Parameters:
      mimeType - mime type
      Returns:
      true if so
    • isMimeTypeArchive

      public static boolean isMimeTypeArchive(String mimeType)
      Is supported archive mime type?
      Parameters:
      mimeType - mime type
      Returns:
      true if so