com.gridsystems.innergrid.api
Class IOUtils

java.lang.Object
  extended by com.gridsystems.innergrid.api.IOUtils

public final class IOUtils
extends java.lang.Object

Utility class for input-output operations.

Author:
dsanchez, Rodrigo Ruiz

Method Summary
static void close(java.io.Closeable c)
          Closes a Closeable instance without throwing exceptions.
static void close(java.lang.Object o)
          Closes an instance of an object that does not implement the Closeable interface, without throwing exceptions.
static void delete(javax.activation.DataHandler dh)
          Deletes the temporal file associated to the specified attachment, if it has one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

delete

public static void delete(javax.activation.DataHandler dh)
Deletes the temporal file associated to the specified attachment, if it has one.

The current implementation only supports ManagedMemoryDataSources.

Parameters:
dh - The data handler to process

close

public static void close(java.io.Closeable c)
Closes a Closeable instance without throwing exceptions.

Parameters:
c - The instance to close

close

public static void close(java.lang.Object o)
Closes an instance of an object that does not implement the Closeable interface, without throwing exceptions.

Parameters:
o - The object to close


Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.