You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Elifarley Callado Coelho (JIRA)" <ji...@apache.org> on 2006/10/05 21:10:29 UTC
[jira] Created: (VFS-91) Provide random access to gzip files.
Provide random access to gzip files.
------------------------------------
Key: VFS-91
URL: http://issues.apache.org/jira/browse/VFS-91
Project: Commons VFS
Issue Type: Improvement
Reporter: Elifarley Callado Coelho
Priority: Minor
A local file provides random access to its contents.
For an application to have transparent access to the uncompressed contents of a gzip file, VFS should provide random access to it as well.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Commented: (VFS-91) Provide random access to gzip files.
Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VFS-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482204 ]
Mario Ivankovits commented on VFS-91:
-------------------------------------
I can't add code which depends on a non ASF licensed (or compatible) library and which is not available through a maven repository.
Please consider providing this filesystem provider through an independent sourceforge project.
Thanks!
Ciao,
Mario
> Provide random access to gzip files.
> ------------------------------------
>
> Key: VFS-91
> URL: https://issues.apache.org/jira/browse/VFS-91
> Project: Commons VFS
> Issue Type: Improvement
> Reporter: Elifarley Callado Coelho
> Priority: Minor
> Fix For: later
>
> Attachments: gzip-rac-src-20061017.zip, gzip-random-access-content.patch, org-ecc-vfs.zip
>
>
> A local file provides random access to its contents.
> For an application to have transparent access to the uncompressed contents of a gzip file, VFS should provide random access to it as well.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Updated: (VFS-91) Provide random access to gzip files.
Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/VFS-91?page=all ]
Mario Ivankovits updated VFS-91:
--------------------------------
Fix Version/s: later
> Provide random access to gzip files.
> ------------------------------------
>
> Key: VFS-91
> URL: http://issues.apache.org/jira/browse/VFS-91
> Project: Commons VFS
> Issue Type: Improvement
> Reporter: Elifarley Callado Coelho
> Priority: Minor
> Fix For: later
>
> Attachments: gzip-rac-src-20061017.zip
>
>
> A local file provides random access to its contents.
> For an application to have transparent access to the uncompressed contents of a gzip file, VFS should provide random access to it as well.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Commented: (VFS-91) Provide random access to gzip files.
Posted by "Elifarley Callado Coelho (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/VFS-91?page=comments#action_12442899 ]
Elifarley Callado Coelho commented on VFS-91:
---------------------------------------------
Hi Mario,
I will look further into these issues soon.
Bear in mind I was eager to get something working ASAP ;)
Issues 1 and 2 are trivial, I'll just change the package name and add the license plate;
Regarding issue 3, I myself had some "issues" when I tried to avoid reading the header myself, so I copied 2 methods found in class GZipInputStream;
Issue 4: I was afraid I would miss a class or two, so I copied classes that aren't really needed. Easy to fix.
Issue 5: I'll provide the proper svn diff files.
I'll try to simplify the algorithm so that it uses more VFS classes, without using extra classes unnecessarily.
> Provide random access to gzip files.
> ------------------------------------
>
> Key: VFS-91
> URL: http://issues.apache.org/jira/browse/VFS-91
> Project: Commons VFS
> Issue Type: Improvement
> Reporter: Elifarley Callado Coelho
> Priority: Minor
> Attachments: gzip-rac-src-20061017.zip
>
>
> A local file provides random access to its contents.
> For an application to have transparent access to the uncompressed contents of a gzip file, VFS should provide random access to it as well.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Commented: (VFS-91) Provide random access to gzip files.
Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/VFS-91?page=comments#action_12440339 ]
Mario Ivankovits commented on VFS-91:
-------------------------------------
Hi!
VFS transparently compress/decompress the file on the fly.
To make the random access stuff work you have to write to a local temporary file and compress it on close() then.
Anything you would like to contribute? *hinthint* ;-)
> Provide random access to gzip files.
> ------------------------------------
>
> Key: VFS-91
> URL: http://issues.apache.org/jira/browse/VFS-91
> Project: Commons VFS
> Issue Type: Improvement
> Reporter: Elifarley Callado Coelho
> Priority: Minor
>
> A local file provides random access to its contents.
> For an application to have transparent access to the uncompressed contents of a gzip file, VFS should provide random access to it as well.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Updated: (VFS-91) Provide random access to gzip files.
Posted by "Elifarley Callado Coelho (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/VFS-91?page=all ]
Elifarley Callado Coelho updated VFS-91:
----------------------------------------
Attachment: gzip-rac-src-20061017.zip
The attached source files provide initial support for (read-only) random access to a gzip file (class GzipFileRandomAccessContent).
No temporary file is used. Content is decompressed as needed.
I'm open to suggestions.
Best regards,
Elifarley
> Provide random access to gzip files.
> ------------------------------------
>
> Key: VFS-91
> URL: http://issues.apache.org/jira/browse/VFS-91
> Project: Commons VFS
> Issue Type: Improvement
> Reporter: Elifarley Callado Coelho
> Priority: Minor
> Attachments: gzip-rac-src-20061017.zip
>
>
> A local file provides random access to its contents.
> For an application to have transparent access to the uncompressed contents of a gzip file, VFS should provide random access to it as well.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Commented: (VFS-91) Provide random access to gzip files.
Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/VFS-91?page=comments#action_12442892 ]
Mario Ivankovits commented on VFS-91:
-------------------------------------
Hi!
There are a couple of issues:
1) Its not possible to embedd the org.ecc package, all has to be prefixed with org.apache.commons.vfs
2) All files have to have the Apache License plate you'll find in all the other files.
3) For what I can see you used your own gzip implementation, I didnt thought in very detail about it, but I think this is not necessary
4) It seems there are classes within the org.ecc package you didn't need to fulfil the proposed function e.g. RandomAccessFileExclusiveInputStream
5) You changed VFS classes, but the patch is not in "svn diff" format - its hard for me to figure out whats changed that way.
In the end it looks like you simply skip bytes ahead by read them byte by byte or backward by resetting to a marker.
Shouldn't this possible to do with the classes already available within VFS?
> Provide random access to gzip files.
> ------------------------------------
>
> Key: VFS-91
> URL: http://issues.apache.org/jira/browse/VFS-91
> Project: Commons VFS
> Issue Type: Improvement
> Reporter: Elifarley Callado Coelho
> Priority: Minor
> Attachments: gzip-rac-src-20061017.zip
>
>
> A local file provides random access to its contents.
> For an application to have transparent access to the uncompressed contents of a gzip file, VFS should provide random access to it as well.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Updated: (VFS-91) Provide random access to gzip files.
Posted by "Elifarley Callado Coelho (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/VFS-91?page=all ]
Elifarley Callado Coelho updated VFS-91:
----------------------------------------
Attachment: org-ecc-vfs.zip
gzip-random-access-content.patch
Patch for adding random read/write access to GZip-compressed data accessed via instances of class 'AbstractFileObject'.
File 'gzip-random-access-content.patch' is a patch for the following files:
GzipFileObject.java
GzipFileProvider.java
GzipRandomAccessContent.java
AbstractFileObjectRewritableInputStreamSource.java
The patched files make use of a library whose source code is included in file 'org-ecc-vfs.zip', which includes unit tests for most of the provided functionality.
This dependency could be included in the plugins page if necessary.
Regards,
Elifarley
> Provide random access to gzip files.
> ------------------------------------
>
> Key: VFS-91
> URL: http://issues.apache.org/jira/browse/VFS-91
> Project: Commons VFS
> Issue Type: Improvement
> Reporter: Elifarley Callado Coelho
> Priority: Minor
> Fix For: later
>
> Attachments: gzip-rac-src-20061017.zip, gzip-random-access-content.patch, org-ecc-vfs.zip
>
>
> A local file provides random access to its contents.
> For an application to have transparent access to the uncompressed contents of a gzip file, VFS should provide random access to it as well.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Resolved: (VFS-91) Provide random access to gzip files.
Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VFS-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Ivankovits resolved VFS-91.
---------------------------------
Resolution: Won't Fix
Won't Fix for now to decrease the work load ;-)
> Provide random access to gzip files.
> ------------------------------------
>
> Key: VFS-91
> URL: https://issues.apache.org/jira/browse/VFS-91
> Project: Commons VFS
> Issue Type: Improvement
> Reporter: Elifarley Callado Coelho
> Priority: Minor
> Fix For: later
>
> Attachments: gzip-rac-src-20061017.zip, gzip-random-access-content.patch, org-ecc-vfs.zip
>
>
> A local file provides random access to its contents.
> For an application to have transparent access to the uncompressed contents of a gzip file, VFS should provide random access to it as well.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org