Hi,
Girish Chandran wrote:
Hi All,
I am a recent entrant into UNO development scene. I have been able write write few simple UNO components and was able to use it with local as well as remote client. I need to write a component which will support streams. To be more precise the component should be able to accept stream data(type could be file or memory etc.). I went through the literature given at the UDK project site and was able to get some idea about the same. As per my understanding I can make my component a ActiveDataSink. This will allow the client to set an InputStream to my component, which then gets the information. Is this approach correct and are there some other alternatives
Yes, you understoud the XActiveDataStream concept well.
Another option would be to let your component provide an XOutputStream implementation to your client. The client would write data to the outpustream. This is a 'push' approach. ActiveDataSink is 'pull'.
to achieve my requirement? Also can somebody please tell me where I can find some examples implementing the use of Stream Interfaces?
You might find useful examples in http://util.openoffice.org/source/browse/util/io/source/stm/. This directory contains the implementation (C++) for several stream related UNO services.
- Kai.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
