public static int rawCompress ( Object input , int inputOffset , int inputLength , byte [ ] output , int outputOffset ) throws IOException { if ( input == null || output == null ) { throw new NullPointerException ( "input or output is null" ) ; } int compressedSize = impl . rawCompress ( input , inputOffset , inputLength , output , outputOffset ) ; return compressedSize ; }
Compress the input buffer [ offset ... offset + length ) contents then write the compressed data to the output buffer [ offset ... )