com.cc.framework.resource
Class MimeType

java.lang.Object
  extended bycom.cc.framework.resource.MimeType
All Implemented Interfaces:
java.io.Serializable, SimpleEnumType

public class MimeType
extends java.lang.Object
implements SimpleEnumType, java.io.Serializable

Defines MIME types used in the Common Controls Framework

Since:
1.0
Version:
$Revision: 1.20 $
Author:
Harald Schulz
See Also:
Serialized Form

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

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

NONE

public static final MimeType NONE
MIME type: NONE


PDF

public static final MimeType PDF
MIME type: PDF


HTML

public static final MimeType HTML
MIME type: HTML


XML

public static final MimeType XML
MIME type: XML


PCL5

public static final MimeType PCL5
MIME type: PCL5


TEXT

public static final MimeType TEXT
MIME type: TEXT


GIF

public static final MimeType GIF
MIME type: GIF


JPEG

public static final MimeType JPEG
MIME type: JPEG


SVG

public static final MimeType SVG
MIME type: SVG


XLS

public static final MimeType XLS
MIME type: XLS


OCTETSTREAM

public static final MimeType OCTETSTREAM
MIME type: OCTETSTREAM


JAVASCRIPT

public static final MimeType JAVASCRIPT
MIME type: JAVASCRIPT


code

private java.lang.String code
Output Format


name

private java.lang.String name
Display name


contentType

private java.lang.String contentType
Content type

Constructor Detail

MimeType

public MimeType(java.lang.String code,
                java.lang.String name,
                java.lang.String contentType)
Constructor for MimeType

Parameters:
code - the code or short name
name - the display name
contentType - the content type
Method Detail

equals

public boolean equals(java.lang.Object obj)
Compares this type to the specified object.

Parameters:
obj - The object to compare this MimeType object against.
Returns:
true if the internal types are equal; false otherwise.

hashCode

public int hashCode()
See Also:
Object.hashCode()

equalsContentType

public boolean equalsContentType(java.lang.Object obj)
Compares the content type of this MIME type to the specified object.

Parameters:
obj - The object to compare this MIME type against.
Returns:
true if the content typeare equal; false otherwise.

getKey

public java.lang.String getKey()
Returns:
returns the internal used key

getValue

public java.lang.String getValue()
Returns:
returns the value (the name)

getContentType

public java.lang.String getContentType()
Returns the content type

Returns:
String

toString

public java.lang.String toString()
Returns the Output Format

Returns:
string


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.