class IoUtils {

  public static void tryFlush(final Object... flushable) {
    for (final Object obj : flushable) {
      try {
        if (obj instanceof Flushable) {
          ((Flushable) obj).flush();
        }
      } catch (final Throwable th) {
        logger.trace("Ignore exception: {}", th);
      }
    }
  }

}