docs: public static byte[] encodeLZ(byte[] bytes, String dictionary) {
      byte[] output = new byte[(int) (bytes.length * 1.05 + 32)];
      Deflater compresser = new Deflater();
      try {
        compresser.setInput(bytes);
        if (null != dictionary && !dictionary.isEmpty()) {
          byte[] bytes2 = dictionary.getBytes("UTF-8");
          compresser.setDictionary(bytes2);
        }
      } catch (UnsupportedEncodingException e) {
        throw new RuntimeException(e);
      }
      compresser.finish();
      int compressedDataLength = compresser.deflate(output);
      compresser.end();
      return Arrays.copyOf(output, compressedDataLength);
    }