org.opentox.toxotis.client.collection
Enum Media

java.lang.Object
  extended by java.lang.Enum<Media>
      extended by org.opentox.toxotis.client.collection.Media
All Implemented Interfaces:
Serializable, Comparable<Media>

public enum Media
extends Enum<Media>

A collection of useful mediatypes.

Author:
Pantelis Sopasakis, Charalampos Chomenides

Enum Constant Summary
APPLICATION_FORM_URL_ENCODED
          The default encoding for an HTML form application/x-www-form-urlencoded
APPLICATION_RDF_TURTLE
           
APPLICATION_RDF_XML
           
APPLICATION_RDF_XML_ABBREV
           
APPLICATION_XML
          The MIME application/xml
APPLICATION_YAML
          MIME for YAML documents (application)
CHEMICAL_CML
          Chemical Modelling Language (CML) MIME type.
CHEMICAL_MDLMOL
           
CHEMICAL_MDLSDF
           
CHEMICAL_SMILES
          Chemical/x-daylight-smiles is the MIME type for the SMILE String of a chemical compound
IMAGE_GIF
          MIME image/gif for GIF images
IMAGE_JPEG
          MIME image/jpeg for JPEG images
IMAGE_PNG
          MIME image/png for PNG images
IMAGE_VND_SEALEDMEDIA_SOFTSEAL_JPG
          MIME image/vnd.sealedmedia.softseal.jpg
TEXT_CSV
          MIME type text/csv for CSV (comma seperated values) documents
TEXT_N_TRIPLES
           
TEXT_URI_LIST
          MIME text/uri-list for a list of URIs as specified in section 5 of RFC 2483.
TEXT_YAML
          MIME for YAML documents (text)
WEKA_ARFF
          MIME for the weka prime data serialization format: text/x-arff
 
Method Summary
 String getMime()
           
 String toString()
           
static Media valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Media[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

APPLICATION_FORM_URL_ENCODED

public static final Media APPLICATION_FORM_URL_ENCODED
The default encoding for an HTML form application/x-www-form-urlencoded

See Also:
W3C specification

APPLICATION_RDF_XML

public static final Media APPLICATION_RDF_XML

APPLICATION_RDF_TURTLE

public static final Media APPLICATION_RDF_TURTLE

APPLICATION_RDF_XML_ABBREV

public static final Media APPLICATION_RDF_XML_ABBREV

CHEMICAL_MDLSDF

public static final Media CHEMICAL_MDLSDF
See Also:
Chemical MIMEs

CHEMICAL_MDLMOL

public static final Media CHEMICAL_MDLMOL
See Also:
Chemical MIMEs

CHEMICAL_CML

public static final Media CHEMICAL_CML
Chemical Modelling Language (CML) MIME type.

See Also:
Chemical MIMEs, CML project

CHEMICAL_SMILES

public static final Media CHEMICAL_SMILES
Chemical/x-daylight-smiles is the MIME type for the SMILE String of a chemical compound

See Also:
Chemical MIMEs

WEKA_ARFF

public static final Media WEKA_ARFF
MIME for the weka prime data serialization format: text/x-arff

See Also:
Examples of ARFFs, Create an ARFF file, ARFF specification

TEXT_YAML

public static final Media TEXT_YAML
MIME for YAML documents (text)

See Also:
YAML specification

APPLICATION_YAML

public static final Media APPLICATION_YAML
MIME for YAML documents (application)

See Also:
YAML specification

APPLICATION_XML

public static final Media APPLICATION_XML
The MIME application/xml

See Also:
Wikipedia article

TEXT_URI_LIST

public static final Media TEXT_URI_LIST
MIME text/uri-list for a list of URIs as specified in section 5 of RFC 2483.

See Also:
RFC 2483

TEXT_N_TRIPLES

public static final Media TEXT_N_TRIPLES

TEXT_CSV

public static final Media TEXT_CSV
MIME type text/csv for CSV (comma seperated values) documents

See Also:
Text/csv specification

IMAGE_PNG

public static final Media IMAGE_PNG
MIME image/png for PNG images

See Also:
Information about image/png

IMAGE_GIF

public static final Media IMAGE_GIF
MIME image/gif for GIF images

See Also:
Information about image/gif

IMAGE_VND_SEALEDMEDIA_SOFTSEAL_JPG

public static final Media IMAGE_VND_SEALEDMEDIA_SOFTSEAL_JPG
MIME image/vnd.sealedmedia.softseal.jpg

See Also:
Information about image/vnd.sealedmedia.softseal.jpg

IMAGE_JPEG

public static final Media IMAGE_JPEG
MIME image/jpeg for JPEG images

See Also:
MIMEs at w3schools, RFC 2387
Method Detail

values

public static Media[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Media c : Media.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Media valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getMime

public String getMime()

toString

public String toString()
Overrides:
toString in class Enum<Media>


Copyright © 2011-2012 OpenTox. All Rights Reserved.