Class Gzip
- java.lang.Object
-
- com.github.tomakehurst.wiremock.common.Gzip
-
public class Gzip extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Gzip()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
gzip(byte[] plainContent)
static byte[]
gzip(java.lang.String plainContent)
static byte[]
gzip(java.lang.String plainContent, java.nio.charset.Charset charset)
static boolean
isGzipped(byte[] content)
static byte[]
unGzip(byte[] gzippedContent)
static java.lang.String
unGzipToString(byte[] gzippedContent)
-
-
-
Method Detail
-
unGzip
public static byte[] unGzip(byte[] gzippedContent)
-
unGzipToString
public static java.lang.String unGzipToString(byte[] gzippedContent)
-
gzip
public static byte[] gzip(java.lang.String plainContent)
-
gzip
public static byte[] gzip(java.lang.String plainContent, java.nio.charset.Charset charset)
-
gzip
public static byte[] gzip(byte[] plainContent)
-
isGzipped
public static boolean isGzipped(byte[] content)
-
-