An optional zlib compression level ranging from 0 (no ZLIB compression; best performance) to 1 (little ZLIB compression; reduced performance) to 9 (strongest ZLIB compression; worst performance) allows one to configure the CPU/memory consumption trade-off.
Unless there is a good reason to the contrary, you should always use level 0: the bnux algorithm typically already precompresses considerably. @param document the XOM document to serialize @param zlibCompressionLevel a number in the range 0..9 @return the bnux document obtained from serialization. @throws IllegalArgumentException if the compression level is out of range.
|
|
|
|
|
|