[4407] in java-interest
Re: URL content
daemon@ATHENA.MIT.EDU (Pat Niemeyer)
Fri Dec 22 09:55:23 1995
Date: Fri, 22 Dec 1995 07:28:15 -0600 (CST)
From: Pat Niemeyer <pat@icon-stl.net>
To: Sunny Fok <sunny@hkstar.com>
cc: java-interest@java.sun.com
In-Reply-To: <Pine.SOL.3.91.951222143827.18958C-100000@b2.hkstar.com>
On Fri, 22 Dec 1995, Sunny Fok wrote:
> I just try to use java.net.URLConnection.getContent(URL) and then cast it
> to an Image type. The URL in my applet is a gif file. The compiler needs a
> class to handle gif(sun/net/www/content/image/gif) but there is only
> a class in the JDK to handle text (sun/net/www/content/text). I wonder
> if there are such classes to handle www content other than text, or is
> there any method to display an image through URL?
sun.net.www.content.image.gif would be the content handler for "gif".
Specific content handlers aren't part of the core Java release, and
Sun's supplimentary classes only include the text/plain handler for right
now. You can be sure that there will be all sorts of handlers available
to support the release of HotJava, although whether or not you will be
able to use them freely is another issue.
Look for a lot more information about content and protocol handlers from
Sun somtime before or with the release of HotJava beta...
Pat
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com