|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.libraries.repository.DefaultMimeRegistry
public class DefaultMimeRegistry
The default-mime registry contains a list of well-known file types and returns mime-information for them. This implementation recognizes a couple of image types and CSS, XML and HTML files. The content is recognized by its filename, not by its actual content.
Constructor Summary | |
---|---|
DefaultMimeRegistry()
Default Constructor. |
Method Summary | |
---|---|
String |
getMimeType(ContentItem item)
Queries the mime-type for a given content-item. |
String |
getMimeType(String filename)
Queries the mime-type for a given filename. |
String |
getSuffix(String mimeType)
Returns the default suffix for files with the given content type. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMimeRegistry()
Method Detail |
---|
public String getMimeType(ContentItem item)
getMimeType
in interface MimeRegistry
item
- the content item for which Mime-Data should be queried.
public String getMimeType(String filename)
filename
- the content item for which Mime-Data should be queried.
public String getSuffix(String mimeType)
getSuffix
in interface MimeRegistry
mimeType
- the mime-type for which a suffix is queried.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |