private static void _compressBZip2(InputStream source, OutputStream target) throws IOException {

	InputStream is = IOUtil.toBufferedInputStream(source);
	OutputStream os = new BZip2CompressorOutputStream(IOUtil.toBufferedOutputStream(target));
	IOUtil.copy(is, os, true, true);
    }
private static void _compressBZip2 ( InputStream source , OutputStream target ) throws IOException { InputStream is = IOUtil . toBufferedInputStream ( source ) ; OutputStream os = new BZip2CompressorOutputStream ( IOUtil . toBufferedOutputStream ( target ) ) ; IOUtil . copy ( is , os , true , true ) ; }
compress a source file to a bzip2 file

@param source
@param target
@throws IOException