Package org.compiere.util
Class MimeType
java.lang.Object
org.compiere.util.MimeType
Mime - Content type map.
http://www.iana.org/assignments/media-types/
- Version:
- $Id: MimeType.java,v 1.2 2006/07/30 00:54:35 jjanke Exp $
- Author:
- Jorg Janke
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MimeType
Get Mime Type of file namestatic String
getMimeType
(String fileName) Get Mime Type of file namevoid
setExtension
(String extension) void
setMimeType
(String mimeType) toString()
String representation
-
Field Details
-
BINARY
application/octet-stream -
TYPES
Mime / Content Type Map
-
-
Constructor Details
-
MimeType
MimeType- Parameters:
extension
- extension (with dot)mimeType
- mime type
-
-
Method Details
-
getMimeType
Get Mime Type of file name- Parameters:
fileName
- file name- Returns:
- mime type
-
get
Get Mime Type of file name- Parameters:
fileName
- file name- Returns:
- mime type
-
getExtension
- Returns:
- Returns the extension.
-
setExtension
- Parameters:
extension
- The extension to set.
-
getMimeType
- Returns:
- Returns the Mime Type (Content Type).
-
setMimeType
- Parameters:
mimeType
- The mimeType to set.
-
toString
String representation
-