Package com.helger.phive.binary
Class PhiveBinaryHelper
java.lang.Object
com.helger.phive.binary.PhiveBinaryHelper
Helper classes
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanCheck if the provided file extension is valid or not.static booleanCheck if the provided MIME Type is valid or not.
-
Method Details
-
isValidFileExtension
Check if the provided file extension is valid or not. Valid file extensions are non-empty, don't start with a dot and are all-lowercase.- Parameters:
s- The file extension to check. May benull.- Returns:
trueif it is valid,falseif not.
-
isValidMimeType
Check if the provided MIME Type is valid or not. Valid MIME Types are non-empty, are all-lowercase and contain no parameters.- Parameters:
s- The MIME type to check. May benull.- Returns:
trueif it is valid,falseif not.
-