[jira] Created: (COMPRESS-54) Add 7zip or RAR archive support

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (COMPRESS-54) Add 7zip or RAR archive support

JIRA jira@apache.org
Add 7zip or RAR archive support
-------------------------------

                 Key: COMPRESS-54
                 URL: https://issues.apache.org/jira/browse/COMPRESS-54
             Project: Commons Compress
          Issue Type: New Feature
         Environment: N/A
            Reporter: Tim Pinet
            Priority: Minor


Has anyone looked into adding support for 7zip and RAR file types? Using the j7zip and junrar libraries I was able to get a rough protoype working with commons-compress but only with extract support for RAR (due to licencing issues). Also, my prototype performance is poor so I definately need to improve it.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-54) Add 7zip or RAR archive support

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689465#action_12689465 ]

Torsten Curdt commented on COMPRESS-54:
---------------------------------------

I've only gathered libraries for implementing this.

For RAR I found sources for
o rarlib (GPL)
o unrar (sort of free but cpp)

For 7zip I found
o p7zip (LGPL + restriction, written in C)
o j7zip (LGPL)

And there are other algorithms (and libraries) to implement as well: ARJ, CAB, ...

But I fear some of those implementations need to be hosted somewhere else (due to the licensing). I'd suggest to create a github project for it.

> Add 7zip or RAR archive support
> -------------------------------
>
>                 Key: COMPRESS-54
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-54
>             Project: Commons Compress
>          Issue Type: New Feature
>         Environment: N/A
>            Reporter: Tim Pinet
>            Priority: Minor
>   Original Estimate: 30h
>  Remaining Estimate: 30h
>
> Has anyone looked into adding support for 7zip and RAR file types? Using the j7zip and junrar libraries I was able to get a rough protoype working with commons-compress but only with extract support for RAR (due to licencing issues). Also, my prototype performance is poor so I definately need to improve it.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-54) Add 7zip or RAR archive support

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689547#action_12689547 ]

Christian Grobmeier commented on COMPRESS-54:
---------------------------------------------

The 7zip SDK is in the public domain - i guess its compatible with asl, is it?

http://www.7-zip.org/sdk.html

The java impl is not a stream, but it feels like it is possible to take those classes and write streaming classes.

> Add 7zip or RAR archive support
> -------------------------------
>
>                 Key: COMPRESS-54
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-54
>             Project: Commons Compress
>          Issue Type: New Feature
>         Environment: N/A
>            Reporter: Tim Pinet
>            Priority: Minor
>   Original Estimate: 30h
>  Remaining Estimate: 30h
>
> Has anyone looked into adding support for 7zip and RAR file types? Using the j7zip and junrar libraries I was able to get a rough protoype working with commons-compress but only with extract support for RAR (due to licencing issues). Also, my prototype performance is poor so I definately need to improve it.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-54) Add 7zip or RAR archive support

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12699070#action_12699070 ]

Christian Grobmeier commented on COMPRESS-54:
---------------------------------------------

I downloaded 7zip public domain package and did some restructuring, formatting etc.
Its a very complex lib with nested nested classes (no typo). Input and Output mechanisms are mixed together. Codestyle doesn't follow Sun standards (looks like C), access modifiers are all public or package scoped, even for private members. Lots of "global variables".
All the work is done with bitshifting which makes everything hard to read.

However, with some manpower it should be possible to refactor everything into streams.

> Add 7zip or RAR archive support
> -------------------------------
>
>                 Key: COMPRESS-54
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-54
>             Project: Commons Compress
>          Issue Type: New Feature
>         Environment: N/A
>            Reporter: Tim Pinet
>            Priority: Minor
>   Original Estimate: 30h
>  Remaining Estimate: 30h
>
> Has anyone looked into adding support for 7zip and RAR file types? Using the j7zip and junrar libraries I was able to get a rough protoype working with commons-compress but only with extract support for RAR (due to licencing issues). Also, my prototype performance is poor so I definately need to improve it.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-54) Add 7zip or RAR archive support

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12699143#action_12699143 ]

Sebb commented on COMPRESS-54:
------------------------------

We need to check first whether public domain is OK to use in an ASF project.

I think there have been some questions as to whether this is allowed; AFAIK it's not covered in the existing rules.

Also, the Wikipedia page says that the LZMA compression is similar to deflate, so maybe that will help understand the code.

> Add 7zip or RAR archive support
> -------------------------------
>
>                 Key: COMPRESS-54
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-54
>             Project: Commons Compress
>          Issue Type: New Feature
>         Environment: N/A
>            Reporter: Tim Pinet
>            Priority: Minor
>   Original Estimate: 30h
>  Remaining Estimate: 30h
>
> Has anyone looked into adding support for 7zip and RAR file types? Using the j7zip and junrar libraries I was able to get a rough protoype working with commons-compress but only with extract support for RAR (due to licencing issues). Also, my prototype performance is poor so I definately need to improve it.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-54) Add 7zip or RAR archive support

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12897109#action_12897109 ]

Leo Izen commented on COMPRESS-54:
----------------------------------

Christopher league at http://contrapunctus.net/league/haques/lzmajio/ created LzmaInputStream and LzmaOutputStream that implement the Lzma SDK files. However, it is GNU GPL, so you might have to licence software with both Gnu GPL and APL.

> Add 7zip or RAR archive support
> -------------------------------
>
>                 Key: COMPRESS-54
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-54
>             Project: Commons Compress
>          Issue Type: New Feature
>         Environment: N/A
>            Reporter: Tim Pinet
>            Priority: Minor
>   Original Estimate: 30h
>  Remaining Estimate: 30h
>
> Has anyone looked into adding support for 7zip and RAR file types? Using the j7zip and junrar libraries I was able to get a rough protoype working with commons-compress but only with extract support for RAR (due to licencing issues). Also, my prototype performance is poor so I definately need to improve it.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.