Interface ContentEncoding

All Superinterfaces:
NamedService
All Known Implementing Classes:
DeflateEncoding, GzipEncoding

public interface ContentEncoding extends NamedService
Content encoding service created from ContentEncodingProvider, or directly implemented. Content encoding/decoding modifies bytes on the wire, for example to compress it.
  • Method Details

    • ids

      Set<String> ids()
      Identification(s) of this scheme as used in Accept-Encoding and Content-Encoding headers.
      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