# Change log ## 1.3.0 - lz4 r123 - xxhash r37 - [#49](https://github.com/jpountz/lz4-java/pull/49) All compression and decompression routines as well as xxhash can now work with java.nio.ByteBuffer. (Branimir Lambov) - [#46](https://github.com/jpountz/lz4-java/pull/46) Fixed incorrect usage of ReleasePrimitiveArrayCritical. (Xiaoguang Sun) - [#44](https://github.com/jpountz/lz4-java/pull/44) Added support for xxhash64. (Linnaea Von Lavia) - [#43](https://github.com/jpountz/lz4-java/pull/43) The compression level for high compression is now configurable. (Linnaea Von Lavia) - [#39](https://github.com/jpountz/lz4-java/pull/39) The JAR is now a valid OSGI bundle. (Simon Chemouil) - [#33](https://github.com/jpountz/lz4-java/pull/33) The implementation based on Java's sun.misc.Unsafe relies on unaligned memory access and is now only used on platforms that support it. (Dmitry Shohov) ## 1.2.0 - lz4 r100 - [#16](http://github.com/jpountz/lz4-java/issues/16) Fix violation of the Closeable contract in LZ4BlockOutputStream: double close now works as specified in the Closeable interface documentation. (Steven Schlansker) - [#17](http://github.com/jpountz/lz4-java/issues/17) The JNI HC compressor now supports maxDestLen < maxCompressedLength. (Adrien Grand) - [#12](http://github.com/jpountz/lz4-java/issues/12) Fixed ArrayIndexOutOfBoundsException in the Java HC compressors on highly compressible inputs when srcOff is > 0. (Brian S. O'Neill, @foresteve, Adrien Grand) - Decompressors have been renamed to "safe" and "fast" to reflect changes in the C API. (Adrien Grand) - [#18](http://github.com/jpountz/lz4-java/issues/18) Added utility methods that take and return (de)compressed byte[]s. (Adrien Grand) ## 1.1.2 - LZ4BlockInputStream does not support mark/reset anymore. (Adrien Grand) - LZ4BlockOutputStream supports a new syncFlush parameter to configure whether the flush method should flush pending data or just flush the underlying stream. (Adrien Grand) - [#14](http://github.com/jpountz/lz4-java/issues/14) Fixed misspelled API. (Brian S. O'Neill) - [#13](http://github.com/jpountz/lz4-java/issues/13) Header must be fully read. (Gabriel Ki) ## 1.1.1 - [#11](http://github.com/jpountz/lz4-java/issues/11) Fixed bug in LZ4BlockOutputStream.write(int). (Adrien Grand, Brian Moore) ## 1.1.0 - lz4 r88 - [#7](http://github.com/jpountz/lz4-java/issues/7) LZ4Factory.fastestInstance() only tries to use the native bindings if: - they have already been loaded by the current class loader, - or if the current class loader is the system class loader. (Adrien Grand) - [#5](http://github.com/jpountz/lz4-java/issues/5) The native instances unpack a shared library to the temporary directory when they are first used. lz4-java now tries to remove this file on exist but this might fail on systems that don't support removal of open files such as Windows. (Adrien Grand) - Added LZ4Factory.fastestJavaInstance() and XXHash.fastestJavaInstance(). (Adrien Grand) - Added StreamingXXHash32.asChecksum() to return a java.util.zip.Checksum view. (Adrien Grand) - [#10](http://github.com/jpountz/lz4-java/issues/10) Added LZ4BlockOutputStream which compresses data into fixed-size blocks of configurable size. (Adrien Grand, Brian Moore) - [#5](http://github.com/jpountz/lz4-java/issues/5) Fixed Windows build. (Rui Gonçalves) - Fixed Mac build. (Adrien Maglo) - [#8](http://github.com/jpountz/lz4-java/issues/5) Provided pre-built JNI bindings for some major platforms: Windows/64, Linux/32, Linux/64 and Mac Intel/64. (Rui Gonçalves, Adrien Maglo, Adrien Grand) ## 1.0.0 - lz4 r87 - xxhash r6