- java.lang.Object
-
- java.lang.Enum<MimeName>
-
- org.arakhne.afc.inputoutput.mime.MimeName
-
- All Implemented Interfaces:
Serializable
,Comparable<MimeName>
public enum MimeName extends Enum<MimeName>
An utility class that declares MIME constants.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:40
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- inputoutput
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MIME_3DS
MIME type for Discreet 3D Studio file.MIME_ATOM_XML
MIME type for ATOM format.MIME_AVI
MIME type for Microsoft video.MIME_BMP
MIME type for Bitmap pictures.MIME_COLLADA
MIME type for Collada file.MIME_CSS
MIME type for CSS file.MIME_CSV
MIME type for CSV file.MIME_DBASE_FILE
MIME type for dBase file (dbf).MIME_DV
MIME type for Digital Video (DV).MIME_DXF
MIME type for AutoCAD DXF file.MIME_FILE_LIST
MIME type for list of files.MIME_GIF
MIME type for GIF pictures.MIME_GIS_PROJECT
MIME type for GIS project (gip).MIME_GIS_PROJECT_ZIP
MIME type for Compressed GIS project (giz).MIME_GZIP
MIME type for GNU zip file.MIME_H264
MIME type for H.264 video.MIME_HTML
MIME type for HTML file.MIME_IGES
MIME type for CAO IGES exchange format.MIME_INIT
MIME type for Window Initialization file.MIME_JAR
MIME type for JAR archive files.MIME_JASIM_CONFIGURATION
MIME type for SeT lab JaSIM configuration file (sfg).MIME_JASIM_SERIALIZED_TREE
MIME type for SeT lab JaSIM serialized perception tree (tree).MIME_JAVASCRIPT
MIME type for Javascript.MIME_JPG
MIME type for JPEG pictures.MIME_MP3
MIME type for MPEG3 file.MIME_MP4
MIME type for MPEG4 file.MIME_MP4_AUDIO
MIME type for MPEG4 audio file.MIME_MPEG_VIDEO
MIME type for MPEG video.MIME_MSEXCEL
MIME type for Microsoft Excel.MIME_MSPOWERPOINT
MIME type for Microsoft Power Point.MIME_MSWORD
MIME type for Microsoft Word.MIME_OBJECT_COLLECTION
MIME type for collection of Java objects.MIME_OBJECT_LIST
MIME type for list of Java objects.MIME_OCTET_STREAM
MIME type for binary files.MIME_PBM
MIME type for Portable Bitmap.MIME_PDF
MIME type for Portable Document Format.MIME_PGM
MIME type for Portable Graymap.MIME_PLAIN_TEXT
MIME type for plain text files.MIME_PNG
MIME type for PNG pictures.MIME_POSTSCRIPT
MIME type for Postscript.MIME_PPM
MIME type for Portable Pixmap.MIME_QGIS
MIME type for Quantum GIS (QGIS), an ESRI-compliant Shape file.MIME_QUICKTIME
MIME type for Quicktime video.MIME_RICH_TEXT
MIME type for rich text.MIME_RTF
MIME type for Rich Text File.MIME_SERIALIZED_OBJECT
MIME type for serialized java objects.MIME_SETLAB_ACTIVATION_LICENSE
MIME type for SeT lab activation licenses (lic).MIME_SFC_PROJECT
MIME type for SeT Framework project (fwj).MIME_SFC_PROJECT_ZIP
MIME type for Compressed SeT framework project (fwz).MIME_SGML
MIME type for SGML file.MIME_SHAPE_FILE
MIME type for ESRI Shape File (SHP).MIME_TAR
MIME type for tar file.MIME_TIFF
MIME type for TIFF image.MIME_UNKNOW
MIME type for unknown file formats.MIME_URI_LIST
MIME type for lists of URIs.MIME_WAV
MIME type for Audio Wave.MIME_WAVEFRONT_OBJ
MIME type for Wavefront OBJ 3D models.MIME_XML
MIME type for XML files.MIME_ZIP
MIME type for ZIP archive files.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMimeConstant()
Replies the MIME constant.boolean
isMimeConstant(String stringMime)
Replies if the given string corresponds to this MIME constant.static MimeName
parseMimeName(String mime)
Parse the given string to extract a MimeName.static javax.activation.MimeType
parseMimeType(String mime)
Parse the given string to extract a MimeType.javax.activation.MimeType
toMimeType()
Replies the MIME type associated to this MIME constant.static MimeName
valueOf(String name)
Returns the enum constant of this type with the specified name.static MimeName[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MIME_UNKNOW
public static final MimeName MIME_UNKNOW
MIME type for unknown file formats.
-
MIME_OCTET_STREAM
public static final MimeName MIME_OCTET_STREAM
MIME type for binary files.
-
MIME_PLAIN_TEXT
public static final MimeName MIME_PLAIN_TEXT
MIME type for plain text files.
-
MIME_SERIALIZED_OBJECT
public static final MimeName MIME_SERIALIZED_OBJECT
MIME type for serialized java objects.
-
MIME_XML
public static final MimeName MIME_XML
MIME type for XML files.
-
MIME_ZIP
public static final MimeName MIME_ZIP
MIME type for ZIP archive files.
-
MIME_JAR
public static final MimeName MIME_JAR
MIME type for JAR archive files.
-
MIME_GZIP
public static final MimeName MIME_GZIP
MIME type for GNU zip file.
-
MIME_GIF
public static final MimeName MIME_GIF
MIME type for GIF pictures.
-
MIME_JPG
public static final MimeName MIME_JPG
MIME type for JPEG pictures.
-
MIME_PNG
public static final MimeName MIME_PNG
MIME type for PNG pictures.
-
MIME_BMP
public static final MimeName MIME_BMP
MIME type for Bitmap pictures.
-
MIME_OBJECT_COLLECTION
public static final MimeName MIME_OBJECT_COLLECTION
MIME type for collection of Java objects.
-
MIME_OBJECT_LIST
public static final MimeName MIME_OBJECT_LIST
MIME type for list of Java objects.
-
MIME_FILE_LIST
public static final MimeName MIME_FILE_LIST
MIME type for list of files.
-
MIME_URI_LIST
public static final MimeName MIME_URI_LIST
MIME type for lists of URIs.
-
MIME_ATOM_XML
public static final MimeName MIME_ATOM_XML
MIME type for ATOM format.
-
MIME_IGES
public static final MimeName MIME_IGES
MIME type for CAO IGES exchange format.
-
MIME_JAVASCRIPT
public static final MimeName MIME_JAVASCRIPT
MIME type for Javascript.
-
MIME_DXF
public static final MimeName MIME_DXF
MIME type for AutoCAD DXF file.
-
MIME_MP3
public static final MimeName MIME_MP3
MIME type for MPEG3 file.
-
MIME_MP4
public static final MimeName MIME_MP4
MIME type for MPEG4 file.
-
MIME_MP4_AUDIO
public static final MimeName MIME_MP4_AUDIO
MIME type for MPEG4 audio file.
-
MIME_MSWORD
public static final MimeName MIME_MSWORD
MIME type for Microsoft Word.
-
MIME_PDF
public static final MimeName MIME_PDF
MIME type for Portable Document Format.
-
MIME_POSTSCRIPT
public static final MimeName MIME_POSTSCRIPT
MIME type for Postscript.
-
MIME_RTF
public static final MimeName MIME_RTF
MIME type for Rich Text File.
-
MIME_SGML
public static final MimeName MIME_SGML
MIME type for SGML file.
-
MIME_MSEXCEL
public static final MimeName MIME_MSEXCEL
MIME type for Microsoft Excel.
-
MIME_MSPOWERPOINT
public static final MimeName MIME_MSPOWERPOINT
MIME type for Microsoft Power Point.
-
MIME_TAR
public static final MimeName MIME_TAR
MIME type for tar file.
-
MIME_WAV
public static final MimeName MIME_WAV
MIME type for Audio Wave.
-
MIME_TIFF
public static final MimeName MIME_TIFF
MIME type for TIFF image.
-
MIME_PBM
public static final MimeName MIME_PBM
MIME type for Portable Bitmap.
-
MIME_PGM
public static final MimeName MIME_PGM
MIME type for Portable Graymap.
-
MIME_PPM
public static final MimeName MIME_PPM
MIME type for Portable Pixmap.
-
MIME_CSV
public static final MimeName MIME_CSV
MIME type for CSV file.
-
MIME_HTML
public static final MimeName MIME_HTML
MIME type for HTML file.
-
MIME_CSS
public static final MimeName MIME_CSS
MIME type for CSS file.
-
MIME_RICH_TEXT
public static final MimeName MIME_RICH_TEXT
MIME type for rich text.
-
MIME_3DS
public static final MimeName MIME_3DS
MIME type for Discreet 3D Studio file.
-
MIME_COLLADA
public static final MimeName MIME_COLLADA
MIME type for Collada file.
-
MIME_INIT
public static final MimeName MIME_INIT
MIME type for Window Initialization file.
-
MIME_H264
public static final MimeName MIME_H264
MIME type for H.264 video.
-
MIME_MPEG_VIDEO
public static final MimeName MIME_MPEG_VIDEO
MIME type for MPEG video.
-
MIME_QUICKTIME
public static final MimeName MIME_QUICKTIME
MIME type for Quicktime video.
-
MIME_AVI
public static final MimeName MIME_AVI
MIME type for Microsoft video.
-
MIME_DV
public static final MimeName MIME_DV
MIME type for Digital Video (DV).
-
MIME_QGIS
public static final MimeName MIME_QGIS
MIME type for Quantum GIS (QGIS), an ESRI-compliant Shape file.- See Also:
MIME_SHAPE_FILE
-
MIME_SHAPE_FILE
public static final MimeName MIME_SHAPE_FILE
MIME type for ESRI Shape File (SHP).- See Also:
MIME_QGIS
-
MIME_DBASE_FILE
public static final MimeName MIME_DBASE_FILE
MIME type for dBase file (dbf).
-
MIME_GIS_PROJECT
public static final MimeName MIME_GIS_PROJECT
MIME type for GIS project (gip).
-
MIME_GIS_PROJECT_ZIP
public static final MimeName MIME_GIS_PROJECT_ZIP
MIME type for Compressed GIS project (giz).
-
MIME_SFC_PROJECT
public static final MimeName MIME_SFC_PROJECT
MIME type for SeT Framework project (fwj).
-
MIME_SFC_PROJECT_ZIP
public static final MimeName MIME_SFC_PROJECT_ZIP
MIME type for Compressed SeT framework project (fwz).- Since:
- 4.0
-
MIME_SETLAB_ACTIVATION_LICENSE
public static final MimeName MIME_SETLAB_ACTIVATION_LICENSE
MIME type for SeT lab activation licenses (lic).- Since:
- 4.0
-
MIME_JASIM_CONFIGURATION
public static final MimeName MIME_JASIM_CONFIGURATION
MIME type for SeT lab JaSIM configuration file (sfg).
-
MIME_JASIM_SERIALIZED_TREE
public static final MimeName MIME_JASIM_SERIALIZED_TREE
MIME type for SeT lab JaSIM serialized perception tree (tree).
-
MIME_WAVEFRONT_OBJ
public static final MimeName MIME_WAVEFRONT_OBJ
MIME type for Wavefront OBJ 3D models.- Since:
- 4.1
-
-
Method Detail
-
values
public static MimeName[] 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 (MimeName c : MimeName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MimeName 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 nameNullPointerException
- if the argument is null
-
toMimeType
public javax.activation.MimeType toMimeType()
Replies the MIME type associated to this MIME constant.- Returns:
- the MIME type for this MIME constant.
-
getMimeConstant
public String getMimeConstant()
Replies the MIME constant.- Returns:
- the MIME constant.
-
isMimeConstant
public boolean isMimeConstant(String stringMime)
Replies if the given string corresponds to this MIME constant.- Parameters:
stringMime
- is the string to compare to the MIME constant.- Returns:
true
if the given Mime string corresponds to the MIME constant of this MIME type, otherwisefalse
.
-
parseMimeType
public static javax.activation.MimeType parseMimeType(String mime)
Parse the given string to extract a MimeType.This function differs from
MimeType(String)
by the fact that this function does not throw an exception but replynull
.- Parameters:
mime
- the string to parse.- Returns:
- the mime type or
null
if invalid.
-
-