Hi,

indeed, the usage of XStorageBasedDocument is the correct approach to get the storage the document is based on. It allows get the storage implementation related to the package format. META-INF/manifest.xml stream is a part of the package format, this is why it can not be accessed using the package storage implementation.

The streams other than manifest.xml in META-INF should be editable using this approach, it is a bug if it is not so. The folder can be handled as a usual substorage in those cases.

Hope that helps.

Best regards,
Mikhail.

On 04/01/09 18:40, Michael Stahl wrote:
On 01/04/2009 10:44, Giuseppe Castagno wrote:
[snip]

Now my questions, keeping in mind that at a certain time I need to
access the "META-INF" substorage to manipulate a custom file (read and
write).

AFAIK, (mav will hopefully correct me if i'm wrong) the META-INF directory in the ZIP package is handled specially in the Storage service: it is abstracted away (handled internally by the Storage implementation), and is not accessible for users of the Storage.

there is some other service (Package? ZipPackage?) that implements a raw ZIP package, but you're unlikely to get that from an open document.

[snip]

regards,
michael



--
Sun Microsystems GmbH                Mikhail Voytenko
Nagelsweg 55                         Software Engineer
20097 Hamburg                        Phone: (+49 40)23646 500
Germany                              Fax:   (+49 40)23646 550
http://www.sun.de                    mailto:mikhail.voite...@sun.com

Sitz der Gesellschaft: Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht München: HRB 161028
Geschäftsführer: Thomas Schröder, Wolfgang Engels, Dr. Roland Bömer
Vorsitzender des Aufsichtsrates: Martin Häring


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to