在Java中读取.Z文件(unix压缩文件) [英] Read a .Z file (unix compresses file) in Java

查看:617
本文介绍了在Java中读取.Z文件(unix压缩文件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所述文件扩展名解释在 http://kb.iu.edu/data /abck.html 。我想使用java api来读取Z文件的内容。 ZipFile api或GZIPInputStream似乎都无法工作。我可以使用ZipFile api打开正常的.zip文件。

The said file extension is explained here at http://kb.iu.edu/data/abck.html. I want to use a java api to read the contents of a Z file. Neither the ZipFile api or the GZIPInputStream seem to work. I can use the ZipFile api to open normal .zip files.

ZipFile zf = new ZipFile("CR93H2.Z");
Enumeration entries = zf.entries();

要添加,所述.Z文件在winrar中打开。

To add, the said .Z file opens up fine in winrar.

有人知道解决方案。

感谢

推荐答案

您可以使用
compress-j2me
::

% svn checkout --quiet http://compress-j2me.googlecode.com/svn/trunk/ compj2me
% cd compj2me/src/lzc-test
% ant -q
% cd build/cmd
% echo "testdonkeyballs" | compress | java com.googlecode.compress_j2me.lzc.Main -d
testdonkeyballs

这篇关于在Java中读取.Z文件(unix压缩文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆