code: public static int compress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset)
              throws IOException
      {
          return rawCompress(input, inputOffset, inputLength, output, outputOffset);
      }
docs: Compress the input buffer content in [inputOffset,
  ...inputOffset+inputLength) then output to the specified output buffer.
  
  @param input
  @param inputOffset
  @param inputLength
  @param output
  @param outputOffset
  @return byte size of the compressed data
  @throws IOException when failed to access the input/output buffer