|
||||||||||
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 | |
---|---|
java.lang.String |
getMimeType(ContentItem item)
Queries the mime-type for a given content-item. |
java.lang.String |
getMimeType(java.lang.String filename)
Queries the mime-type for a given filename. |
java.lang.String |
getSuffix(java.lang.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 java.lang.String getMimeType(ContentItem item)
getMimeType
in interface MimeRegistry
item
- the content item for which Mime-Data should be queried.
public java.lang.String getMimeType(java.lang.String filename)
filename
- the content item for which Mime-Data should be queried.
public java.lang.String getSuffix(java.lang.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 |