Re: OpenOffice io vs. bonobo-storage



"Michael Hoennig (mi)" wrote:

> Interface Stream covers multiple aspects, but an interface should only
> cover a single aspect. If not, it reduces reuseability. The aspects
> covered are reading, writing, seeking and truncating. Additionally,
> having the copy_to method in this interfaces makes it harder to use
> helper classes for that.
>
> We have multiple interfaces for this purpose: XInputStream,
> XOutputStream, XSeekable and for the copying XConnectable is what is most
> similar.

Sounds reasonable - api reusability is better with your approach. But I
wonder how this will fit into the current bonobo framework?

> Additionally our XInputStream has a method "available" to check
> if there is currently more data available which is different from EOF.

available() is a good idea.






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