[gephi-dev] Adding TAR.GZ archives support
Sébastien Heymann
sebastien.heymann at gephi.org
Fri Nov 26 18:38:47 CET 2010
@Mathieu
There is a big performance issue with archive files: they are uncompressed
twice. Once in ImportControllerImpl.java, and one in
DesktopImportControllerUI.java.
What about storing the reference to the uncompressed file inside the
FileImporter?
Seb
2010/11/26 Mathieu Bastian <mathieu.bastian at gmail.com>
> Hello,
>
> > I was looking at source codes and what I found is following:
> >
> > 1. zip is supported because of native zip/jar support included in
> > NetBeans platform
> > 2. it supports currently only jar/zip, because of native java support
> > for zip format (classes like ZipInputStream, ZipEntry, ...)
> > 3. tar format simply packs more files into 1 file adding some metadata
> > stored in 512kB store & gzip adds additional compression
> > 4. java automatically supports gzip format too (GZIPInputStream,
> > although it is more low level)
> >
> > => I think the patch adding tar.gzip will be quite easy to implement.
> >
> > Mathieu, am I right about upper notes?
>
> Yes, completeley correct, and yes we support only one file in it,
> without folder.
>
> > Does current support for jar/zip supports only one file in zip?
> > Where should the patch be merged into?
> >
> > //Martin
> >
> >
> > 2010/11/26 Sébastien Heymann <sebastien.heymann at gephi.org>:
> >> Hello,
> >>
> >> The Gephi File Importer can handle ZIP files. I need to add the support
> of
> >> TAR.GZ archives.
> >>
> >> Could you point me some doc / where should I look at inside the source
> code?
> >>
> >> Thanks,
> >> Seb
> >>
> >> _______________________________________________
> >> gephi-dev mailing list
> >> gephi-dev at lists.gephi.org
> >> http://gephi.org/mailman/listinfo/gephi-dev
> >>
> >>
> > _______________________________________________
> > gephi-dev mailing list
> > gephi-dev at lists.gephi.org
> > http://gephi.org/mailman/listinfo/gephi-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gephi.org/pipermail/gephi-dev/attachments/20101126/2129c8a3/attachment.html>
More information about the gephi-dev
mailing list