org.dawb.common.util.io
Class IOCollectionUtils

java.lang.Object
  extended by org.dawb.common.util.io.IOCollectionUtils

public class IOCollectionUtils
extends java.lang.Object


Constructor Summary
IOCollectionUtils()
           
 
Method Summary
static java.util.Collection<?> readCollection(java.io.File file)
           
static java.util.Collection<?> readCollection(java.lang.String path)
           
static void saveCollection(java.io.File file, java.util.Collection<?> collection)
          Save collection to file
static void saveCollection(java.lang.String path, java.util.Collection<?> collection)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOCollectionUtils

public IOCollectionUtils()
Method Detail

saveCollection

public static void saveCollection(java.lang.String path,
                                  java.util.Collection<?> collection)
                           throws java.lang.Exception
Throws:
java.lang.Exception

saveCollection

public static void saveCollection(java.io.File file,
                                  java.util.Collection<?> collection)
                           throws java.lang.Exception
Save collection to file

Parameters:
file -
collection -
Throws:
java.lang.Exception

readCollection

public static java.util.Collection<?> readCollection(java.lang.String path)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

readCollection

public static java.util.Collection<?> readCollection(java.io.File file)
                                              throws java.lang.Exception
Throws:
java.lang.Exception