Class LastChangesUtil

java.lang.Object
com.github.jenkins.lastchanges.LastChangesUtil
All Implemented Interfaces:
Serializable

public class LastChangesUtil extends Object implements Serializable
See Also:
  • Constructor Details

    • LastChangesUtil

      public LastChangesUtil()
  • Method Details

    • toHtmlDiff

      public static String toHtmlDiff(LastChanges buildChanges, String buildName)
    • shouldCompressDiff

      public static boolean shouldCompressDiff(String diff)
      Parameters:
      diff - the diff
      Returns:
      true If diff is bigger than DIFF_COMPRESS_THRESHOLD
    • compress

      public static byte[] compress(String uncompressedDiff)
    • decompress

      public static String decompress(byte[] compressedDiff)