public class ExtensionDescriptor extends Object
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.
Constructor and Description |
---|
ExtensionDescriptor() |
ExtensionDescriptor(String name) |
Modifier and Type | Method and Description |
---|---|
String |
getMimetype() |
String |
getName() |
boolean |
isAmbiguous() |
void |
setAmbiguous(boolean ambiguous) |
void |
setMimetype(String mimetype) |
public ExtensionDescriptor()
public ExtensionDescriptor(String name)
Copyright © 2013 Nuxeo SA. All Rights Reserved.