Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsWriting to zip file with Eclipse EFS
https://www.eclipse.org/forums/index.php/mv/msg/205110/656156/#msg_656156
this file should be part of the project (not the project itself).
As a lot of other Eclipse related stuff, I can't find any good documentation
To implement the reading I have used this tutorial: http://www.eclipsezone.com/articles/efs/.
The problem I have is to implement the write support. I have figured I have to implement openOutputStream, but I can't figure out how to do it.
Does anyone know how to do this? Is there any existing implementations?]]>Anders S2011-02-24T11:21:28-00:00Re: Writing to zip file with Eclipse EFS
https://www.eclipse.org/forums/index.php/mv/msg/205110/657336/#msg_657336
When implementing a writable file system, you need to override mkdir, delete and openOutputStream.
Specifically I'm having a hard time implementing openOutputStream.
As of now I'm returning a ZipOutputStream from ZipRootItem when openOuputStream is called. This doesnt make much sense though, as I need to append ZipEntry's and the actual files that should be written.
What is the best strategy to solve this?
Is it possible to to write only one file to the zip file?
I'll provide more info if needed ]]>Anders S2011-03-02T13:40:37-00:00Re: Writing to zip file with Eclipse EFS
https://www.eclipse.org/forums/index.php/mv/msg/205110/657382/#msg_657382
ArchiveURLConnection as an example for how to implement delete and
update only a single entry.
navlelo wrote:
> It appears my question was a bit vague, so I'll try to clarify a bit.
>
> When implementing a writable file system, you need to override mkdir,
> delete and openOutputStream. Specifically I'm having a hard time
> implementing openOutputStream. As of now I'm returning a
> ZipOutputStream from ZipRootItem when openOuputStream is called. This
> doesnt make much sense though, as I need to append ZipEntry's and the
> actual files that should be written.
> What is the best strategy to solve this?
> Is it possible to to write only one file to the zip file?
>
> I'll provide more info if needed :)]]>Ed Merks2011-03-02T15:57:11-00:00Re: Writing to zip file with Eclipse EFS
https://www.eclipse.org/forums/index.php/mv/msg/205110/658008/#msg_658008
EFS implementation from org.eclipse.ui.examples.filesystem? It treats a zip file as the backing file system.]]>Tomasz Zarna2011-03-04T23:22:30-00:00