org.eclipse.gemini.blueprint.test.internal.util
Class IOUtils

java.lang.Object
  extended by org.eclipse.gemini.blueprint.test.internal.util.IOUtils

public abstract class IOUtils
extends Object

Utility class for IO operations.

Author:
Costin Leau

Nested Class Summary
static interface IOUtils.IOCallback
           
 
Constructor Summary
IOUtils()
           
 
Method Summary
static void closeStream(InputStream stream)
           
static void closeStream(OutputStream stream)
           
static boolean delete(File file)
          Delete the given file (can be a simple file or a folder).
static void doWithIO(IOUtils.IOCallback callback)
           
 
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

doWithIO

public static void doWithIO(IOUtils.IOCallback callback)

closeStream

public static void closeStream(InputStream stream)

closeStream

public static void closeStream(OutputStream stream)

delete

public static boolean delete(File file)
Delete the given file (can be a simple file or a folder).

Parameters:
file - the file to be deleted
Returns:
if the deletion succeded or not


Copyright © 2006-2012. All Rights Reserved.