iipc / jwarc

Java library for reading and writing WARC files with a typed API
Apache License 2.0
46 stars 8 forks source link

ByteBuffer inflate and deflate support #45

Open ato opened 4 years ago

ato commented 4 years ago

It'd be nice to make use of the Java 11 versions of inflate() and deflate() so that buffers that aren't array-backed can be used.

One option would be to produce a multi-release jar with a different class for 8 and 11. That might make it so jwarc is difficult to compile correctly on 8 though.

LambdaMetaFactory might be a reasonable runtime method selection mechanism with minimal performance overhead. (example)