|
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: aStringOrSymbol
-
because we change class, the copy may not be identical
Usage example(s):
CachedTypes := nil.
self fromString:'text/html'
|
converting
-
asMimeType
-
(comment from inherited method)
return myself as a mimeType instance
queries
-
fileTypeInfo
-
(MIMETypes mimeTypeFromString:'application/x-smalltalk-source') fileTypeInfo
-
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
-
return true, if I represent an archive type (such as zip or tar)
-
isAudioType
-
return true, if I represent some audio type
-
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
-
return true, if I represent a binary (non-text) type
-
isCHeaderType
-
return true, if I represent a C header file type
-
isCPPSourceType
-
return true, if I represent a C++ sourcecode type
-
isCSourceType
-
return true, if I represent a C sourcecode type
-
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
-
return true, if I represent the html text type
-
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
-
return true, if I represent an image type (such as gif or jpg)
-
isJSONType
-
return true, if I represent a JSON type
-
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
-
return true, if I represent the pdf type
-
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
-
return true, if I represent the smalltalk sourcecode type
-
isSourceCodeType
-
return true, if I represent some programming language's sourcecode type
-
isTextType
-
return true, if I represent some text type
-
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
-
return true, if I represent the xml text type
-
suffix
-
(MIMETypes mimeTypeFromString:'application/x-expecco-testsuite') suffix
|