org.pentaho.reporting.libraries.repository
public class DefaultMimeRegistry extends Object implements MimeRegistry, Serializable
Constructor Summary | |
---|---|
DefaultMimeRegistry()
Default Constructor. |
Method Summary | |
---|---|
String | getMimeType(ContentItem item)
Queries the mime-type for a given content-item. |
String | getSuffix(String mimeType)
Returns the default suffix for files with the given content type.
|
Parameters: item the content item for which Mime-Data should be queried.
Returns: the mime-type never null.
Parameters: mimeType the mime-type for which a suffix is queried.
Returns: the suffix, never null.