checkin from browser
authorClaus Gittinger <cg@exept.de>
Thu, 03 Sep 2009 17:55:02 +0200
changeset 2728 9d97da90730c
parent 2727 b7105db29f74
child 2729 0b3fbe23a9e7
checkin from browser
extensions.st
--- a/extensions.st	Thu Sep 03 17:55:00 2009 +0200
+++ b/extensions.st	Thu Sep 03 17:55:02 2009 +0200
@@ -0,0 +1,15 @@
+"{ Package: 'stx:libview2' }"
+!
+
+!CharacterArray methodsFor:'converting'!
+
+asMimeType
+    ^ MIMETypes mimeTypeFromString:self string
+
+    "
+     'text/html' asMimeType isTextType
+     'text/html' asMimeType isImage
+     'image/gif' asMimeType isImage    
+    "
+! !
+