public class HttpEncodingDeflate extends Object
HttpEncoding
for the deflate
coding.Modifier and Type | Class and Description |
---|---|
protected static interface |
org.zaproxy.zap.network.AbstractStreamHttpEncoding.InputStreamSupplier |
protected static interface |
org.zaproxy.zap.network.AbstractStreamHttpEncoding.OutputStreamSupplier |
Modifier and Type | Method and Description |
---|---|
byte[] |
decode(byte[] content)
Decodes the given content.
|
byte[] |
encode(byte[] content)
Encodes the given content.
|
static HttpEncodingDeflate |
getSingleton()
Gets the singleton.
|
public static HttpEncodingDeflate getSingleton()
public byte[] encode(byte[] content) throws IOException
HttpEncoding
encode
in interface HttpEncoding
content
- the content to encode.IOException
- if an error occurred while encoding the content.public byte[] decode(byte[] content) throws IOException
HttpEncoding
decode
in interface HttpEncoding
content
- the content to decode.IOException
- if an error occurred while decoding the content.