org.gillius.Util
Class IOUtils

java.lang.Object
  extended by org.gillius.Util.IOUtils

public class IOUtils
extends java.lang.Object

IOUtils contains useful IO utility methods.

Author:
Jason Winnebeck

Constructor Summary
IOUtils()
           
 
Method Summary
static void safeClose(java.io.Closeable c)
          Closes the given closeable, if it is not null, and ignores any exceptions that it throws.
static boolean safeDelete(java.io.File f)
          Deletes the given file, if it is not null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtils

public IOUtils()
Method Detail

safeClose

public static void safeClose(java.io.Closeable c)
Closes the given closeable, if it is not null, and ignores any exceptions that it throws.


safeDelete

public static boolean safeDelete(java.io.File f)
Deletes the given file, if it is not null.

Parameters:
f - nullable File
Returns:
the result of File.delete(), or false if f is null


Copyright © 2008-2010 Jason Winnebeck. All Rights Reserved.