Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lz4 legacy format support (typically for Linux Kernel compression) #205

Open
cfig opened this issue Apr 1, 2023 · 1 comment
Open

lz4 legacy format support (typically for Linux Kernel compression) #205

cfig opened this issue Apr 1, 2023 · 1 comment

Comments

@cfig
Copy link

cfig commented Apr 1, 2023

Can you add support of the lz4 legacy format, which is still used in linux kernel?
Both compress/decompress are needed.

Test case:

1. create the legacy lz4 file:

cat file | lz4 -l -12 --favor-decSpeed > file.lz4

I want a java compressor to achieve this without the external lz4 command tool.

2. Testing the file

command

lz4 -t  file.lz4 -vv

output shows

*** LZ4 command line interface 64-bits v1.9.3, by Yann Collet ***
_POSIX_C_SOURCE defined: 200809L
_POSIX_VERSION defined: 200809L
PLATFORM_POSIX_VERSION defined: 200809L
Detected : Legacy format 
file.lz4             : decoded 1048576 bytes                                   
Done in 0.00 sec  

The "Legacy format" is what we need.

3. decompress etc.

I want a java decompressor to achieve this without the external lz4(or lz4cat) command tool.

Will you consider supporting the legacy format?

Thanks

@cfig
Copy link
Author

cfig commented Jun 6, 2023

Any comments on this topic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant