Decompress JBIG2 Data in Java
JDeli includes a filter option to decompress data in Java which was compressed using the JBIG2 algorithm. The decompress 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 decompress data in Java :
final JBIG2FilterOptions options = new JBIG2FilterOptions();
options.setMode(FilterOptions.FilterMode.DECOMPRESS);
JDeli.filter(final byte[] raw_data, final JBIG2FilterOptions options);
or
final JBIG2FilterOptions options = new JBIG2FilterOptions();
options.setMode(FilterOptions.FilterMode.DECOMPRESS);
JDeli.filter(final InputStream inputStream, final JBIG2FilterOptions options, final OutputStream outputStream);
FilterOptions allows setting of any supported Filter Options