Code example for Flushable

Methods: flush

0
   * @see Closeables#close 
   */ 
  public static void flush(Flushable flushable, boolean swallowIOException)
      throws IOException { 
    try { 
      flushable.flush();
    } catch (IOException e) {
      logger.log(Level.WARNING,
          "IOException thrown while flushing Flushable.", e);
      if (!swallowIOException) {
        throw e;
      } 
    } 
  } 
 
  /** 
   * Equivalent to calling {@code flush(flushable, true)}, but with no 
   * {@code IOException} in the signature. 
   * 
   * @param flushable the {@code Flushable} object to be flushed. 
Contextual code suggestions in your IDE  Get Codota for Java