Package com.io7m.cardant.client.basic.internal

# Class CACompression

java.lang.Object
com.io7m.cardant.client.basic.internal.CACompression

public final class CACompression extends Object
Functions to decompress responses.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static byte[]`
  `decompressResponse(byte[] data, HttpHeaders responseHeaders)`
  Decompress the response if necessary.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### decompressResponse

    public static byte[] decompressResponse(byte[] data, HttpHeaders responseHeaders) throws IOException
    Decompress the response if necessary.
    Parameters:
      `data` - The possibly-compressed data
      `responseHeaders` - The response headers
    Returns:
      The decompressed bytes
    Throws:
      `IOException` - On errors