Code example for Flushable

Methods: flush

0
    } 
 
    @Override 
    protected void done() throws IOException { 
      if (closeable instanceof Flushable)
        ((Flushable) closeable).flush();
      if (ignoreCloseExceptions)
        try { 
          closeable.close();
        } catch (IOException e) {
          // Ignored 
        } 
      else 
        closeable.close();
    } 
  }