com.cldellow:gzip

Uncompress GZIP streams and expose member offsets.

Лицензия

Лицензия

Группа

Группа

com.cldellow
Идентификатор

Идентификатор

gzip
Последняя версия

Последняя версия

0.0.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

com.cldellow:gzip
Uncompress GZIP streams and expose member offsets.
Ссылка на сайт

Ссылка на сайт

https://github.com/cldellow/gzip
Система контроля версий

Система контроля версий

https://github.com/cldellow/gzip/tree/master

Скачать gzip

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.cldellow/gzip/ -->
<dependency>
    <groupId>com.cldellow</groupId>
    <artifactId>gzip</artifactId>
    <version>0.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.cldellow/gzip/
implementation 'com.cldellow:gzip:0.0.4'
// https://jarcasting.com/artifacts/com.cldellow/gzip/
implementation ("com.cldellow:gzip:0.0.4")
'com.cldellow:gzip:jar:0.0.4'
<dependency org="com.cldellow" name="gzip" rev="0.0.4">
  <artifact name="gzip" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.cldellow', module='gzip', version='0.0.4')
)
libraryDependencies += "com.cldellow" % "gzip" % "0.0.4"
[com.cldellow/gzip "0.0.4"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
commons-io : commons-io jar 2.6

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

DEPRECATED

Don't use this library!

It relied on accessing internals of java.util.zip.Inflater, which have changed in JDK 11.

Instead, use GzipCompressorInputStream from Apache compress-commons. An example of how to use it is at https://github.com/cldellow/warc-service/blob/e95f8f5906c39efeb781a47b343a7cec179af7e3/src/main/scala/com/cldellow/warc/framework/WarcHandler.scala#L62

gzip

Build Status codecov Maven Central

Emit offsets of nested GZIP streams.

GZIP has the interesting property that a sequence of concatenated GZIP streams can be read as though it were a single GZIP stream.

The Web Archive (WARC) format takes advantage of this to store tens of thousands of GZIP streams in a single file. When processing such a file, it can be useful to know the start of the underlying stream. The stock java.util.zip.GZIPInputStream class does not expose this.

This library patches that class expose a callback which gets invoked with the offsets of the member streams.

Usage

int[] offsets = new int[100];

GZIPInputStream gzis = new GZIPInputStream(is, (member, offset) -> { offsets[member] = offset; });

License

This library is a fork of java.util.zip.GZIPInputStream as implemented by Oracle.

This library's contents are subject to the GPL "Classpath" exception. You may link it into an executable without that executable itself having to be licensed under the GPL.

Версии библиотеки

Версия
0.0.4
0.0.3
0.0.2
0.0.1