hudson.plugins.violations.util
Class CloseUtil

java.lang.Object
  extended by hudson.plugins.violations.util.CloseUtil

public final class CloseUtil
extends java.lang.Object

A utility class to close closables.


Method Summary
static void close(java.io.Closeable closable)
          Close a closable ignoring exceptions.
static void close(java.io.Closeable closable, boolean ignore)
          Close a closable - optional ignoring exceptions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

close

public static void close(java.io.Closeable closable,
                         boolean ignore)
                  throws java.io.IOException
Close a closable - optional ignoring exceptions.

Parameters:
closable - the closable to close.
ignore - if true do not throw an exception if there is one.
Throws:
java.io.IOException - if there is a problem closing the closable.

close

public static void close(java.io.Closeable closable)
Close a closable ignoring exceptions.

Parameters:
closable - the closable to close.


Copyright © 2004-2012. All Rights Reserved.