W3C home > Mailing lists > Public > www-dom-ts@w3.org > April 2003

Re: DOMInputStream and DOMReader

From: Curt Arnold <carnold@houston.rr.com>
Date: Thu, 03 Apr 2003 01:26:10 -0600
Message-ID: <3E8BE212.3020908@houston.rr.com>
To: www-dom-ts@w3.org

Jeroen van Rotterdam wrote:
> Curt,
> 
> Is there anything in the framework yet for creation of
> DOMInputStream/DOMReader ?
> 
> We've discussed this a long time ago and I didn't have any
> change to see whether there was activity on this issue ?
> 
> Thanks in advance,
> 
> Jeroen
> 
> 
I just added support for the value parameter for DOMInputStream 
definitions to the Java framework.  The value is expanded to a URL using 
the same logic as the <load> method and then the URL's openStream method 
is called.

For example,

   <var name="staffStream" type="DOMInputStream" value='"staff"'/>

would expand to:

InputStream staffStream = openStream("staff");

Where DOMTestCase.openStream(String baseURL) would append the 
appropriate suffix and attempt to find the resource within the .jar file 
(unless the value contains a protocol).
Received on Thursday, 3 April 2003 02:26:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 April 2009 12:58:47 GMT