🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16847

Referring to URL memory

#16847
From: Vasudevan Srinivasan
Date: Mon, 18 Jan 1999 00:00
16 lines
1002 bytes
Hi
I have got a memory area (as String) which contains something like
"<HTML>
<BODY>
This is a text
</BODY>
</HTML>"

basically the string is a series of html instructions. How do I convert
this to an java.net.URL object ? casting, of course, wont work. I need
send this to the browser to be displayed as HTML. I tried extending the
URL class and experimenting with URLStreamHandlerFactory (making it not
to recognize protocols  etc. but little success so far).

Thanks for any help
Vasu
Technical Details
Message-ID: <36A3550F.FF80D497@netrisk.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,27d24e7fc934324e,start
X-Google-Attributes: gidf74b3,public
From: Vasudevan Srinivasan <vasudevan@netrisk.com>
Subject: Referring to URL memory
Date: 1999/01/18
Message-ID: <36A3550F.FF80D497@netrisk.com>
X-Deja-AN: 434022908
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language