Hi Mikhail, Kai,

Thank you very much for your replies.
Sincerely I didn't notice the note about the flush command. 
My mistake of course, but perhaps the docu could be improved here:

The examples on the dev guide are all generic (not about a specific content 
type), so the flush command is never shown.
Furthermore, when I read the IDL spec of the PCPFolder I found this:
 
  XCommandProcessor

Description
This interface is implemented according to the specification of service 
Content .....
....

Aha!, OK!
So I jumped on the css.ucb.Content page and read, but the flush command is 
never mentioned.

Thanks again
Paolo M







Alle 09:15, martedì 28 novembre 2006, Kai Sommerfeld ha scritto:
> Hi all,
>
> Mikhail Voitenko wrote:
> > Hi Paolo,
> >
> > The provided by you link points to a solution using Package component.
> > But the writing to a zip file works well using the UCB too.
> >
> > The provided by you UCB-based example looks good from the first view,
> > except the missing "flash" command. It should be executed on the root
>
>  Actually, the name of the command is "flush".
>
> > content of the zip file "vnd.sun.star.zip://<encoded file URL to the zip
> > file>/". This command triggers the storing of all the changes made to
> > the zip file.
>
>  For your interest: The "flush" command has been introduced for
> performance reasons. As you can imagine zipping the whole file
> automatically upon every write operation can be quiete time consuming...
>
>  Documentation of the "flush" command can be found here:
> http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/PackageFolderCon
>tent.html
>
> - Kai.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to