* @throws IOException
*/
public static int getCompressedSize(Algorithm algo, Compressor compressor,
byte[] inputBuffer, int offset, int length) throws IOException {
DataOutputStream compressedStream = new DataOutputStream(
new NullOutputStream());
if (compressor != null) {
compressor.reset();
}
OutputStream compressingStream = algo.createCompressionStream(
compressedStream, compressor, 0);