Interface ContentEncodingProvider
- All Known Implementing Classes:
DeflateEncodingProvider,GzipEncodingProvider
public interface ContentEncodingProvider
Content encoding
ServiceLoader service provider interface.-
Method Details
-
ids
Identification(s) of this scheme as used inAccept-EncodingandContent-Encodingheaders.- Returns:
- identifications, such as
deflate,gzip
-
supportsEncoding
boolean supportsEncoding()Does this provider support encoding.- Returns:
- encoding supported
-
supportsDecoding
boolean supportsDecoding()Does this provider support decoding.- Returns:
- decoding supported
-
decoder
ContentDecoder decoder()To decode bytes.- Returns:
- decoder
-
encoder
ContentEncoder encoder()To encode bytes.- Returns:
- encoder
-