[udk-dev] [pyUNO]opening with XInputStream

2005-11-14 Thread Laurent Godard
Hi all i'm doing some tests with pyUNO I cannot figure out using the InputStream property of LoadComponentFromURL i have an OOo file, read by the legal file reading method from python and need to pass it to an OOo instance How can i define this inputStream to pass as argument What is the

Re: [udk-dev] Java filter batch job

2005-11-14 Thread Kay Ramme - Sun Germany - Hamburg
Hi Martin, just two points: - If the hanging finalizer really is the problem, than one dedicated thread for releasing/finalizing mapped UNO objects should do the trick, no thread pool needed. The Java finalizer just needs to pass these objects to the releaser thread. - How does you ensure

Re: [udk-dev] Java filter batch job

2005-11-14 Thread Stephan Bergmann
Joerg Budischewski wrote: [...] The java uno bridge need to create also a fresh thread for each release (or at least for each concurrent release). It can't be a single thread doing the releases, because this would end in the same problem. A single additonal thread is enough to avoid the

Re: [udk-dev] [pyUNO]opening with XInputStream

2005-11-14 Thread David Douard
Hi,it may be useful to have a version that does not load the entire file in memory, with something like (untested):class FileInputStream(unohelper.Base, XInputStream, XSeekable): Minimal Implementation of XInputStream def __init__(self, filename): self.filename = filename self.size =

Re: [udk-dev] [pyUNO]opening with XInputStream

2005-11-14 Thread Laurent Godard
Hi David it may be useful to have a version that does not load the entire file in memory, with something like (untested): yes should work btw, havin the whole file in foo can be usefull though for transport consideration. It is what i need :) thanks for your proposal Laurent -- Laurent

Re: [udk-dev] Java filter batch job

2005-11-14 Thread Kay Ramme - Sun Germany - Hamburg
Stephan Bergmann wrote: Joerg Budischewski wrote: [...] The java uno bridge need to create also a fresh thread for each release (or at least for each concurrent release). It can't be a single thread doing the releases, because this would end in the same problem. A single additonal thread

Re: [udk-dev] Java filter batch job

2005-11-14 Thread Stephan Bergmann
Kay Ramme - Sun Germany - Hamburg wrote: Stephan Bergmann wrote: Joerg Budischewski wrote: [...] The java uno bridge need to create also a fresh thread for each release (or at least for each concurrent release). It can't be a single thread doing the releases, because this would end in the

Re: [udk-dev] [pyUNO]opening with XInputStream

2005-11-14 Thread Laurent Godard
Hi pierre Hi, the google link is a response to one of my question to the list dev@udk.openoffice.org look in the archive for subject making a copy of the current document The code you cited is from Joerg Budischewski and it worked perfectly well with OOo1.1 but I never tested it with OOo2.