Package com.github.jenkins.lastchanges
Class LastChangesUtil
- java.lang.Object
-
- com.github.jenkins.lastchanges.LastChangesUtil
-
- All Implemented Interfaces:
Serializable
public class LastChangesUtil extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LastChangesUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
compress(String uncompressedDiff)
static String
decompress(byte[] compressedDiff)
static boolean
shouldCompressDiff(String diff)
static String
toHtmlDiff(LastChanges buildChanges, String buildName)
-
-
-
Method Detail
-
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)
-
-