code: public Object read(MessageBodyReaderContext context) throws IOException, WebApplicationException {
  
          Object encoding = context.getHeaders().getFirst(HttpHeaders.CONTENT_ENCODING);
          if (encoding != null && encoding.toString().equalsIgnoreCase("lzf")) {
              InputStream old = context.getInputStream();
              LZFInputStream is = new LZFInputStream(old);
              context.setInputStream(is);
              try {
                  return context.proceed();
              } finally{
                  context.setInputStream(old);
              }
          } else {
              return context.proceed();
          }
      }
docs: Check if content encoding is LZF.
  <p/>If encoding is LZF, wrap the InputStream for that message in LZFInputStream to decode it
  @param context Context for HTTP request/response
  @return context.proceed()
  @throws IOException
  @throws WebApplicationException