[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New release?



> Thanks. I can't see how it deals with URI; is that the systemID stuff?
> Maybe I'm being stupid... What would it actually look like to use this
> with a URI, say http://data.net/?stockquote=APPL 

Indeed, the management of pure URIs is through established streams
which are then associated with the symbolic systemId.

Perhaps we create an InputSource of our own than internally
only manages Strings. If you say

is.setURI (sURI)

it retrieves the content at the URI and assigns it to a string

is.setStream (InputStream is)

it retrieves the content at the InputStream and assigns it to a string

is.setString (String s)

it assigns the given string directly.

There could also be method

getURI()
getStream()
getString()

where getURI and getStream would return null if the content was
placed directly with setString.

I believe this should do it finally :-) Only thing I wonder is
whether we should change the name from InputSource to something
else in order to avoid name clashes with SAX (that can, of course,
be managed in Java).

Janne
--
Janne Saarela           | Visiting scientist
Email: jsaarela@w3.org  | World Wide Web Consortium http://www.w3.org/