如题!本人在网上已经找了好久了,都没有满意的,大牛你在哪儿?
解决方案 »
- java 为什么会内存泄露,这个典型的例子为什么会造成内存泄露?
- 关于两表间的联动变化,求助解决思路
- java Swing 加入一个滚动条后不出东西了,为什么
- 朋友们我是java初学者帮我看看这个排序问题吧
- jni 异常Exception in thread "main" java.lang.UnsatisfiedLinkError: Usb_ChangePin
- 高手进来请教个问题
- 关于JTable
- 请高手帮忙看看我的设置是否正确?请给于详细回答
- 关于建立父目录不存在的情况下建立文件或目录的问题
- 如何*.java将编译成*.exe文件
- 崩溃了,那位高人指点
- 输入一个字符串,如何求其中字母a的个数?
http://code.zz265.com/vcycx/vcwjcl/soft_9538.html
我没找到现有的Java代码,另外,我不熟悉LHA压缩,不知道代码怎么写。
the lharc/lha archiver is a multi platform archiver made by haruyasu yoshizaki,
which has a relatively good compression. it uses more or less the same
technology like the zip programs by phil katz. there was a hack named "ice",
which had only the graphic characters displayed on decompression changed.
offset count type description
0000h 1 byte size of archived file header
0001h 1 byte checksum of remaining bytes
0002h 3 char id='-lh'
id='-lz'
0005h 1 char compression methods used (see table 0005)
0006h 1 char id='-'
0007h 1 dword compressed size
000bh 1 dword uncompressed size
000fh 1 dword original file date/time (see table 0009)
0013h 1 word file attribute
0015h 1 byte filename / path length in bytes
="len"
0016h "len" char filename / path
0018h 1 word crc-16 of original file
+"len"
(table 0005)
lharc compression types
"0" - no compression
"1" - lzw, 4k buffer, huffman for upper 6 bits of position
"2" - unknown
"3" - unknown
"4" - lzw, arithmetic encoding
"5" - lzw, arithmetic encoding
"s" - lha 2.x archive?
"\" - lha 2.x archive?
"d" - lha 2.x archive?
extension:lzh,ice
occurences:pc
programs:lharc.exe, lha.exe
你直接看它核心的代码吧,就是进行LHA压缩的那部分
而且,像LHA
Good luck!(上一个回复还没说完,就不小心发送出去了……)