Package | com.adobe.icc.enum |
Class | public final class MimeType |
Inheritance | MimeType Object |
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Related API Elements
Method | Defined By | ||
---|---|---|---|
[static]
Converts a FILEEXT value to a TYPE value. | MimeType | ||
[static]
Specifies whether the format represents image content. | MimeType | ||
[static]
True if the format represents text content. | MimeType | ||
[static]
Converts a FORMAT value to a FILEEXT value. | MimeType | ||
[static]
Converts a FORMAT value to a TYPE value. | MimeType | ||
Indicates whether an object has a specified property defined. | Object | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
[static]
Converts a TYPE value to a FORMAT value. | MimeType | ||
Returns the primitive value of the specified object. | Object |
Constant | Defined By | ||
---|---|---|---|
FILEEXT_GIF : String = "gif" [static]
File: GIF image. | MimeType | ||
FILEEXT_JPEG : String = "jpeg" [static]
File: JPEG image. | MimeType | ||
FILEEXT_JPG : String = "jpg" [static]
File: JPG image. | MimeType | ||
FILEEXT_PNG : String = "png" [static]
File: PNG image. | MimeType | ||
FILEEXT_TEXT : String = "txt" [static]
File: Text-based (plain/unformatted text). | MimeType | ||
FILEEXT_XML : String = "xml" [static]
File: XML-based (could be HTML, XHTML, plain XML, etc.). | MimeType | ||
FORMAT_GIF : String = "image/gif" [static] Image Format: GIF content. | MimeType | ||
FORMAT_JPEG : String = "image/jpeg" [static] Image Format: JPEG content. | MimeType | ||
FORMAT_JPG : String = "image/jpg" [static] Image Format: JPG content. | MimeType | ||
FORMAT_PLAINTEXT : String = "text/plain" [static] Text Format: Plain text content. | MimeType | ||
FORMAT_PNG : String = "image/png" [static] Image Format: PNG content. | MimeType | ||
FORMAT_RICHTEXT : String = "text/html" [static] Text Format: XHTML content. | MimeType | ||
FORMAT_XMLTEXT : String = "text/xml" [static] Text Format: Flash HTML/Flex Rich Text content. | MimeType | ||
TYPE_GIF : String = "IMAGE_GIF" [static]
Image Type: GIF content. | MimeType | ||
TYPE_JPEG : String = "IMAGE_JPEG" [static]
Image Type: JPEG content. | MimeType | ||
TYPE_PLAINTEXT : String = "TEXT_PLAIN" [static]
Text Type: Plain text content. | MimeType | ||
TYPE_PNG : String = "IMAGE_PNG" [static]
Image Type: PNG content. | MimeType | ||
TYPE_RICHTEXT : String = "TEXT_RICH" [static]
Text Type: XHTML content. | MimeType | ||
TYPE_XMLTEXT : String = "TEXT_XML" [static]
Text Type: Flash HTML/Flex Rich Text content. | MimeType |
fileExtToType | () | method |
public static function fileExtToType(fileExt:String):String
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Converts a FILEEXT value to a TYPE value. FILEXT is a file extension.
Parameters
fileExt:String — The FILEEXT constant value to convert to a TYPE constant value.
|
String — Associated TYPE constant value.
|
Throws
Error — Invalid file extension.
|
formatIsImage | () | method |
public static function formatIsImage(format:String):Boolean
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Specifies whether the format represents image content. Note that true is only returned if format
is explicitly set to
something recognized as an image.
Parameters
format:String — The format to inspect. One of the image format constants. For example, FORMAT_JPG, FORMAT_JPEG, or FORMAT_PNG.
|
Boolean — Boolean indicating whether the format represents image content
|
formatIsText | () | method |
public static function formatIsText(format:String):Boolean
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
True if the format represents text content. Note that true is only returned if format
is explicitly set to
something recognized as text.
Parameters
format:String — The format to inspect. One of the text format constants. For example, FORMAT_RICHTEXT, FORMAT_XMLTEXT, or FORMAT_PLAINTEXT.
|
Boolean — the boolean value indicating if the format represents Text content.
|
formatToFileExt | () | method |
public static function formatToFileExt(format:String):String
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Converts a FORMAT value to a FILEEXT value. That is, a file extension.
Parameters
format:String — The FORMAT constant value to convert to a FILEEXT constant value.
|
String — Associated FILEEXT constant value.
|
Throws
Error — Invalid format.
|
formatToType | () | method |
public static function formatToType(format:String):String
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Converts a FORMAT value to a TYPE value.
Parameters
format:String — The FORMAT constant value to convert to a TYPE constant value.
|
String — Associated TYPE constant value.
|
Throws
Error — Invalid format.
|
typeToFormat | () | method |
public static function typeToFormat(type:String):String
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Converts a TYPE value to a FORMAT value.
Parameters
type:String — The TYPE const value to convert to a FORMAT const value.
|
String — Associated FORMAT const value.
|
Throws
Error — Invalid type.
|
FILEEXT_GIF | Constant |
public static const FILEEXT_GIF:String = "gif"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
File: GIF image.
FILEEXT_JPEG | Constant |
public static const FILEEXT_JPEG:String = "jpeg"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
File: JPEG image.
FILEEXT_JPG | Constant |
public static const FILEEXT_JPG:String = "jpg"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
File: JPG image.
FILEEXT_PNG | Constant |
public static const FILEEXT_PNG:String = "png"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
File: PNG image.
FILEEXT_TEXT | Constant |
public static const FILEEXT_TEXT:String = "txt"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
File: Text-based (plain/unformatted text).
FILEEXT_XML | Constant |
public static const FILEEXT_XML:String = "xml"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
File: XML-based (could be HTML, XHTML, plain XML, etc.).
FORMAT_GIF | Constant |
public static const FORMAT_GIF:String = "image/gif"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Image Format: GIF content.
FORMAT_JPEG | Constant |
public static const FORMAT_JPEG:String = "image/jpeg"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Image Format: JPEG content.
FORMAT_JPG | Constant |
public static const FORMAT_JPG:String = "image/jpg"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Image Format: JPG content.
FORMAT_PLAINTEXT | Constant |
public static const FORMAT_PLAINTEXT:String = "text/plain"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Text Format: Plain text content.
FORMAT_PNG | Constant |
public static const FORMAT_PNG:String = "image/png"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Image Format: PNG content.
FORMAT_RICHTEXT | Constant |
public static const FORMAT_RICHTEXT:String = "text/html"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Text Format: XHTML content.
FORMAT_XMLTEXT | Constant |
public static const FORMAT_XMLTEXT:String = "text/xml"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Text Format: Flash HTML/Flex Rich Text content.
TYPE_GIF | Constant |
public static const TYPE_GIF:String = "IMAGE_GIF"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Image Type: GIF content.
TYPE_JPEG | Constant |
public static const TYPE_JPEG:String = "IMAGE_JPEG"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Image Type: JPEG content.
TYPE_PLAINTEXT | Constant |
public static const TYPE_PLAINTEXT:String = "TEXT_PLAIN"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Text Type: Plain text content.
TYPE_PNG | Constant |
public static const TYPE_PNG:String = "IMAGE_PNG"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Image Type: PNG content.
TYPE_RICHTEXT | Constant |
public static const TYPE_RICHTEXT:String = "TEXT_RICH"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Text Type: XHTML content.
TYPE_XMLTEXT | Constant |
public static const TYPE_XMLTEXT:String = "TEXT_XML"
Language Version: | ActionScript 3.0 |
Product Version: | Asset Composer Building Block 9.5 |
Runtime Versions: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Text Type: Flash HTML/Flex Rich Text content.
Mon Nov 28 2011, 06:48 AM -08:00