Package ch.autumo.commons.mime
Class MimeUtils
java.lang.Object
ch.autumo.commons.mime.MimeUtils
MIME type utils.
-
Field Summary
Modifier and TypeFieldDescriptionAllowed archive mime types.Allowed octet mime types.Allowed text mime types. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isMimeTypeArchive
(String mimeType) Is supported archive mime type?static boolean
isMimeTypeOctet
(String mimeType) Is supported octet-stream mime type?static boolean
isMimeTypeText
(String mimeType) Is supported text mime type?
-
Field Details
-
mimeTextList
Allowed text mime types. -
mimeOctetList
Allowed octet mime types. -
mimeArchiveList
Allowed archive mime types.
-
-
Constructor Details
-
MimeUtils
public MimeUtils()
-
-
Method Details
-
isMimeTypeText
Is supported text mime type?- Parameters:
mimeType
- mime type- Returns:
- true if so
-
isMimeTypeOctet
Is supported octet-stream mime type?- Parameters:
mimeType
- mime type- Returns:
- true if so
-
isMimeTypeArchive
Is supported archive mime type?- Parameters:
mimeType
- mime type- Returns:
- true if so
-