Class MimeTypeDescription

java.lang.Object
com.jalios.io.mimetype.MimeTypeDescription

public class MimeTypeDescription extends Object
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 Details

  • Method Details

    • getMimeType

      public String getMimeType()
    • getParentType

      public String getParentType()
    • getExtensions

      public ArrayList getExtensions()
    • getMagicStrings

      public ArrayList getMagicStrings()
    • getMagicNumbers

      public ArrayList getMagicNumbers()
    • getAllowsLeadingWhiteSpace

      public boolean getAllowsLeadingWhiteSpace()
    • addRequiringType

      public void addRequiringType(MimeTypeDescription description)
      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

      public ArrayList getRequiringTypes()
    • matches

      public boolean matches(char[] chars)
    • matches

      public boolean matches(byte[] bytes)
    • containsExtension

      public boolean containsExtension(String extension)
      Returns whether the set of file extensions of this MimeTypeDescription contains the specified file extension.