Deflate Data in Java
The JDeli Java image compression library includes a filter option to deflate data in Java to reduce its size. The deflate filter is written in 100% Java with no dependencies.
Key information:
- 100% Java solution. No dlls or dependencies on native code
- can be done in memory or on disk
How to deflate data in Java :
final FlateFilterOptions options = new FlateFilterOptions();
options.setMode(FilterOptions.FilterMode.COMPRESS);
JDeli.filter(final byte[] raw_data, final FlateFilterOptions options);
or
final FlateFilterOptions options = new FlateFilterOptions();
options.setMode(FilterOptions.FilterMode.COMPRESS);
JDeli.filter(final InputStream inputStream, final FlateFilterOptions options, final OutputStream outputStream);
FilterOptions allows setting of any supported Filter Options