Tango 0.99 Released
Jarrett Billingsley
kb3ctd2 at yahoo.com
Sun Jul 15 08:18:51 PDT 2007
"renoX" <renosky at free.fr> wrote in message news:4699FE56.5000905 at free.fr...
>
> I couldn't find this on the documentation, what's the difference between a
> stream and a conduit?
>
A Conduit is an interface to some kind of IO device. An InputStream is
_anything_ from which data can be read, and an OutputStream is _anything_ to
which data can be written. Conduits can expose input and output streams,
but other examples of streams are Buffers and Filters. Readers and Writers,
then, simply read or write data from or to streams. This way you can set up
readers or writers on _anything_ which can be read or written, and not just
conduits and buffers anymore. This also makes it possible to make more
generic functions and classes, by just having them use Input and
OutputStreams, rather than having to specialize for Conduits, Buffers,
Filters, etc.
More information about the Digitalmars-d-announce
mailing list