|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.resource.MimeType
Defines MIME types used in the Common Controls Framework
Field Summary | |
private java.lang.String |
code
Output Format |
private java.lang.String |
contentType
Content type |
static MimeType |
GIF
MIME type: GIF |
static MimeType |
HTML
MIME type: HTML |
static MimeType |
JAVASCRIPT
MIME type: JAVASCRIPT |
static MimeType |
JPEG
MIME type: JPEG |
private java.lang.String |
name
Display name |
static MimeType |
NONE
MIME type: NONE |
static MimeType |
OCTETSTREAM
MIME type: OCTETSTREAM |
static MimeType |
PCL5
MIME type: PCL5 |
static MimeType |
PDF
MIME type: PDF |
private static long |
serialVersionUID
Serial Version UID |
static MimeType |
SVG
MIME type: SVG |
static MimeType |
TEXT
MIME type: TEXT |
static MimeType |
XLS
MIME type: XLS |
static MimeType |
XML
MIME type: XML |
Constructor Summary | |
MimeType(java.lang.String code,
java.lang.String name,
java.lang.String contentType)
Constructor for MimeType |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Compares this type to the specified object. |
boolean |
equalsContentType(java.lang.Object obj)
Compares the content type of this MIME type to the specified object. |
java.lang.String |
getContentType()
Returns the content type |
java.lang.String |
getKey()
|
java.lang.String |
getValue()
|
int |
hashCode()
|
java.lang.String |
toString()
Returns the Output Format |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
public static final MimeType NONE
public static final MimeType PDF
public static final MimeType HTML
public static final MimeType XML
public static final MimeType PCL5
public static final MimeType TEXT
public static final MimeType GIF
public static final MimeType JPEG
public static final MimeType SVG
public static final MimeType XLS
public static final MimeType OCTETSTREAM
public static final MimeType JAVASCRIPT
private java.lang.String code
private java.lang.String name
private java.lang.String contentType
Constructor Detail |
public MimeType(java.lang.String code, java.lang.String name, java.lang.String contentType)
code
- the code or short namename
- the display namecontentType
- the content typeMethod Detail |
public boolean equals(java.lang.Object obj)
obj
- The object to compare this MimeType
object
against.
true
if the internal types are equal;
false
otherwise.public int hashCode()
Object.hashCode()
public boolean equalsContentType(java.lang.Object obj)
obj
- The object to compare this MIME type
against.
true
if the content type
are equal;
false
otherwise.public java.lang.String getKey()
public java.lang.String getValue()
public java.lang.String getContentType()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |