class IcapClient implements Closeable {

  @Override
  public void close() {
    if (client != null) {
      try {
        client.close();
      } catch (final IOException ignored) {
        // Nothing
      }
      client = null;
    }
    if (in != null) {
      try {
        in.close();
      } catch (final IOException ignored) {
        // Nothing
      }
      in = null;
    }
    if (out != null) {
      try {
        out.close();
      } catch (final IOException ignored) {
        // Nothing
      }
      out = null;
    }
  }

  public  IcapClient(final String serverIP, final int port,
                    final String icapService);
  public  IcapClient(final String serverIP, final int port,
                    final String icapService, final int previewSize);

}