public class GeneralUtils extends Object
Constructor and Description |
---|
GeneralUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
bestFilePath(File file)
Returns the canonical path for a file, but if there is an
IO exception while trying to get it, will return an absolute path.
|
static void |
closeQuietly(InputStream is)
Closes a stream, while ignoring any exceptions.
|
static List<Map<String,Object>> |
readInCsv(File csvFile) |
public static void closeQuietly(InputStream is)
is
- input stream to closepublic static String bestFilePath(File file)
file
- input stream to closepublic static List<Map<String,Object>> readInCsv(File csvFile) throws IOException
IOException
Copyright © 2013. All Rights Reserved.