Package com.jalios.io.mimetype
Class MimeTypeDescription
java.lang.Object
com.jalios.io.mimetype.MimeTypeDescription
Licence concern :
This method is based upon Aperture MagicMimeTypeIdentifier.
The code was modified at the margin to be compatible with JRE 1.4.2.
Given the licence of Aperture : Open Software Licence (OSL), this modified code
of Aperture classes are held at the disposal on demand at support@jalios.com
Concerned classes :
UtfUtil
MagicNumber
MagicMimeTypeIdentifier
MagicString
MagicNumber- Since:
- JCMS-5.7.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequiringType(MimeTypeDescription description) Register a requiring MimeTypeDescription on this MimeTypeDescription.booleancontainsExtension(String extension) Returns whether the set of file extensions of this MimeTypeDescription contains the specified file extension.booleanbooleanmatches(byte[] bytes) booleanmatches(char[] chars)
-
Constructor Details
-
MimeTypeDescription
-
-
Method Details
-
getMimeType
-
getParentType
-
getExtensions
-
getMagicStrings
-
getMagicNumbers
-
getAllowsLeadingWhiteSpace
public boolean getAllowsLeadingWhiteSpace() -
addRequiringType
Register a requiring MimeTypeDescription on this MimeTypeDescription. The specified MimeTypeDescription should have at least one Condition that has this MimeTypeDescription's mimeType as parent type. -
getRequiringTypes
-
matches
public boolean matches(char[] chars) -
matches
public boolean matches(byte[] bytes) -
containsExtension
Returns whether the set of file extensions of this MimeTypeDescription contains the specified file extension.
-