| View previous topic :: View next topic |
| Author |
Message |
Freddieric General User

Joined: 08 Dec 2004 Posts: 19
|
Posted: Wed Dec 15, 2004 12:10 am Post subject: XInputStream derived from XComponent |
|
|
| Is there a way to derive an XInputStream or InputStream in the service XComponent? |
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
Posted: Wed Dec 15, 2004 8:41 am Post subject: |
|
|
It is not clear what you are asking.
Clearly, XInputStream inherits from XInterface.
It would be possible to implement your own service, which implements both interfaces XInputStream and XComponent, and other interfaces. Why you would want to do so, or whether building a custom service is what you want to do is unclear. _________________ Want to make OOo Drawings like the colored flower design to the left? |
|
| Back to top |
|
 |
Cybb20 Super User


Joined: 02 Mar 2004 Posts: 1569 Location: Frankfurt, Germany
|
Posted: Wed Dec 15, 2004 12:40 pm Post subject: |
|
|
Please be more specific, XInputStream and InputStream are two different things (one is a service and one is an interface).
Also please do provide the reason or at least what the goal is youre trying to achieve.
Christian _________________ - Knowledge is Power - |
|
| Back to top |
|
 |
Freddieric General User

Joined: 08 Dec 2004 Posts: 19
|
Posted: Wed Dec 15, 2004 5:19 pm Post subject: |
|
|
Ok, sorry for that.
On my program, i already have XComponent object. This object holds the whole document right? On that object, is there any way i can transform it into XInputStream, or any stream?
My goal is, to get an inputstream for me to directly put it on the Servlet response output stream. What i am doing is, reading the template document (.sxw), then populate data to the template via servlet, save it to temporary file. Then through that temporary file, i can load it in servlet. Because it is easy to get the inputstream. What i want is to not save it to temporary file, instead, transform the template document with the populated data into a stream and directly display that in the browser. So i am asking if there is a way that the XComponent, because i dont see any method to get its input stream, be tranformed into inputstream.
Hope this is clear.
Thanks! |
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|