|
Class: MIMEType (private in MIMETypes
This class is only visible from within
MIMETypes.
Object
|
+--Collection
|
+--SequenceableCollection
|
+--ArrayedCollection
|
+--UninterpretedBytes
|
+--CharacterArray
|
+--String
|
+--ImmutableString
|
+--MIMETypes::MIMEType
- Package:
- stx:libview2
- Category:
- Net-Communication-Support
- Owner:
- MIMETypes
like a string, but knows that it represents a mimeType.
mimetypes are singletons, remembered in the class variable CachedTypes.
instance creation
-
> fromString:">fromString: aStringOrSymbol
-
because we change class, the copy may not be identical
Usage example(s):
CachedTypes := nil.
self fromString:'text/html'
|
converting
-
> asMimeType">asMimeType
-
(comment from inherited method)
return myself as a mimeType instance
queries
-
> fileTypeInfo">fileTypeInfo
-
(MIMETypes mimeTypeFromString:'application/x-smalltalk-source') fileTypeInfo
-
> isArchive">isArchive
-
return true, if I represent an archive type (such as zip or tar)
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
> isArchiveType">isArchiveType
-
return true, if I represent an archive type (such as zip or tar)
-
> isAudioType">isAudioType
-
return true, if I represent some audio type
-
> isBinary">isBinary
-
return true, if I represent a binary (non-text) type
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
> isBinaryType">isBinaryType
-
return true, if I represent a binary (non-text) type
-
> isCHeaderType">isCHeaderType
-
return true, if I represent a C header file type
-
> isCPPSourceType">isCPPSourceType
-
return true, if I represent a C++ sourcecode type
-
> isCSourceType">isCSourceType
-
return true, if I represent a C sourcecode type
-
> isHtml">isHtml
-
return true, if I represent the html text type
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
> isHtmlType">isHtmlType
-
return true, if I represent the html text type
-
> isImage">isImage
-
return true, if I represent an image type (such as gif or jpg)
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
> isImageType">isImageType
-
return true, if I represent an image type (such as gif or jpg)
-
> isJSONType">isJSONType
-
return true, if I represent a JSON type
-
> isPdf">isPdf
-
return true, if I represent the pdf type
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
> isPdfType">isPdfType
-
return true, if I represent the pdf type
-
> isSmalltalkSource">isSmalltalkSource
-
return true, if I represent the smalltalk sourcecode type
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
> isSmalltalkSourceType">isSmalltalkSourceType
-
return true, if I represent the smalltalk sourcecode type
-
> isSourceCodeType">isSourceCodeType
-
return true, if I represent some programming language's sourcecode type
-
> isTextType">isTextType
-
return true, if I represent some text type
-
> isXml">isXml
-
return true, if I represent the xml text type
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
> isXmlType">isXmlType
-
return true, if I represent the xml text type
-
> suffix">suffix
-
(MIMETypes mimeTypeFromString:'application/x-expecco-testsuite') suffix
|