Class ExtensionDescriptor


  • public class ExtensionDescriptor
    extends Object
    Filename extension definition.

    Allow the mimetype service to guess which mimetype to use for each extension. Ambiguous extensions (such as xml) tell the service that a binary sniffing operation is advised to guess the right mimetype.

    Author:
    Olivier Grisel
    • Field Detail

      • mimetype

        protected String mimetype
      • ambiguous

        protected boolean ambiguous
    • Constructor Detail

      • ExtensionDescriptor

        public ExtensionDescriptor()
      • ExtensionDescriptor

        public ExtensionDescriptor​(String name)
    • Method Detail

      • getMimetype

        public String getMimetype()
      • setMimetype

        public void setMimetype​(String mimetype)
      • isAmbiguous

        public boolean isAmbiguous()
      • setAmbiguous

        public void setAmbiguous​(boolean ambiguous)
      • getName

        public String getName()