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

Re: New release?



Hi Dan

> > What do you think about the InputStream-level of abstraction
> > for the DataSource class?
> 
> Tricky... I quite like the idea of encapsulating URI-to-inputstream
> intelligence within each datasource. For example, LDAP query URIs to get
> metadata about people, Z39.50 URIs to talk to Bibliographic stores etc
> etc. For each of these data source types, there will be handler
> libraries floating around, but most will not offer a handy
> datastream-from-URI facility. They'll go straight to the returned data
> as set of objects or somesuch.
> 
> Can we have URI _and_ Stream (or, better, String) please? URIs are
> pretty useful object identifiers and a string would be useful for
> dig.sig. stuff.

I am starting to wonder if we should use the InputSource
class from the SAX V1.0 distribution. It provides all the
possible constructors we can imagine. There would then only be 

public void        setInputSource (InputSource is);
public InputSource getInputSource();

methods in DataSource. Whaddayasay?

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