※当サイトの記事には、広告・プロモーションが含まれます。

IANA(Internet Assigned Numbers Authority)で公開してるTime Zone Databaseの拡張子は.lz

nazology.net

⇧ amazing...

拡張子が.lzって言われてもね

調べてみたところ、

docs.fileformat.com

A file with .lz extension is a compressed archive file created with Lzip, which is a free command-line tool for compression. It supports concatenation to compress support files. LZ files have media type application/lzip and support higher compression rations than BZ2. LZ are based on the LZMA (Lempel-Ziv-Markov chain) algorithm and include a 32-bit CRC checksum and ident bytes for checking the integrity of the file.

https://docs.fileformat.com/compression/lz/

⇧ lzのベースになってるアルゴリズムが「LZMA(Lempel-Ziv-Markov chain)」ってものらしいのですが、

The Lempel–Ziv–Markov chain algorithm (LZMA) is an algorithm used to perform lossless data compression. It has been under development since either 1996 or 1998 by Igor Pavlov and was first used in the 7z format of the 7-Zip archiver. 

Lempel–Ziv–Markov chain algorithm - Wikipedia

7-Zipで初めに使われたって言ってますと。

IANA(Internet Assigned Numbers Authority)で公開してるTime Zone Databaseの拡張子が.lz

IANA(Internet Assigned Numbers Authority)で公開してるTime Zone Databaseを確認したところ、

www.iana.org

⇧ 拡張子が『.lz』になってますと。

7-Zipで展開(解凍)できるのかと思ってたら、駄目らしい。

jagadgetaholic.blogspot.com

www.tokovalue.jp

⇧ 上記サイト様によりますと、lzipなるもので展開できるそうな。

lzip はLZMA圧縮アルゴリズムを利用する可逆圧縮ファイルフォーマット用のコマンドである。インターフェースはgzipbzip2と似ている。lzipは、gzipと同じぐらい速く復元でき、bzip2よりも効率よく圧縮できる

lzip - Wikipedia

Wikipediaさんによると、gzipと似ているらしい。

Javaだと、

docs.oracle.com

標準のZIPおよびGZIPファイル形式の読み込みおよび書込み用クラスを提供します。 また、DEFLATE圧縮アルゴリズムを使用して圧縮および圧縮解除を実行するためのクラスも含みます。このアルゴリズムは、ZIPおよびGZIPファイル形式で使用されます。 さらに、任意の入力ストリームのCRC-32、CRC-32C、およびAdler-32チェックサムを計算するためのユーティリティ・クラスがあります。

https://docs.oracle.com/javase/jp/17/docs/api/java.base/java/util/zip/package-summary.html

⇧ ZIPかGZIP形式に対応ってなってるから、『.lz』ファイルは非対応ってことなんかな?

なんか、Apache CommonsのAPIで、

github.com

Apache Commons Compress software defines an API for working with compression and archive formats. These include: bzip2, gzip, pack200, lzma, xz, Snappy, traditional Unix Compress, DEFLATE, DEFLATE64, LZ4, Brotli, Zstandard and ar, cpio, jar, tar, zip, dump, 7z, arj.

https://github.com/apache/commons-compress

lzma(lempel–ziv–markov chain algorithm)に対応してるっぽいと思ったんだけど、

commons.apache.org

⇧ 見たところ、『.lzma』って拡張子に対応してるのであって、『.lz』は対応して無い...『.lz』の立ち位置がいまいち良く分からん...

というわけで、plzipをダウンロードして、コマンドで展開しました。

展開されました。

あとは、7-Zipで展開。

展開されました。

何かイメージしてたのと違うけど、

qiita.com

⇧ 上記サイト様が読み方を説明してくれてます。

毎度モヤモヤ感が半端ない...

今回はこのへんで。