Class ExtensionDescriptor
- java.lang.Object
-
- org.nuxeo.ecm.platform.mimetype.service.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
-
-
Constructor Summary
Constructors Constructor Description ExtensionDescriptor()
ExtensionDescriptor(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMimetype()
String
getName()
boolean
isAmbiguous()
void
setAmbiguous(boolean ambiguous)
void
setMimetype(String mimetype)
-
-
-
Constructor Detail
-
ExtensionDescriptor
public ExtensionDescriptor()
-
ExtensionDescriptor
public ExtensionDescriptor(String name)
-
-