May 12, 2011
7:55 p.m.
On Thu, May 12, 2011 at 9:23 PM, Stéphane Ducasse <stephane.ducasse@inria.fr
wrote:
may be we should deprecate MIMEType then. Since now Zinc is in :)
So http://code.google.com/p/pharo/issues/detail?id=4208 And ZnMime Type is commented ! Laurent.
I guess and represent the content type of a file. For a description of what is MIME, see http://en.wikipedia.org/wiki/Internet_media_type http://en.wikipedia.org/wiki/MIME
Examples:
MIMEType forFileNameReturnMimeTypesOrDefault: 'index.html'.
MIMEType fromMIMEString: 'application/zip'.
However, MIMEType does not properly deal with extra parameters, as in 'text/plain;charset=utf-8'. It also does not 'know' very much. That is why there is a ZnMimeType.
Sven