org.springframework.shell.support.util
Class IOUtils

java.lang.Object
  extended by org.springframework.shell.support.util.IOUtils

public final class IOUtils
extends Object

Static helper methods relating to I/O. Inspired by the eponymous class in Apache Commons I/O.

Since:
1.2.0

Method Summary
static void closeQuietly(Closeable... closeables)
          Quietly closes each of the given Closeables, i.e. eats any IOExceptions arising.
static void closeQuietly(ZipFile... zipFiles)
          Quietly closes each of the given ZipFiles, i.e. eats any IOExceptions arising.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

closeQuietly

public static void closeQuietly(Closeable... closeables)
Quietly closes each of the given Closeables, i.e. eats any IOExceptions arising.

Parameters:
closeables - the closeables to close (any of which can be null or already closed)

closeQuietly

public static void closeQuietly(ZipFile... zipFiles)
Quietly closes each of the given ZipFiles, i.e. eats any IOExceptions arising.

Parameters:
zipFiles - the zipFiles to close (any of which can be null or already closed)