|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axway.grapes.commons.utils.FileUtils
public final class FileUtils
FileUtils
Provides generic methods
| Method Summary | |
|---|---|
static Long |
getSize(File file)
Get file size |
static String |
read(File file)
Reads a file and returns the result in a String |
static void |
serialize(File folder,
String content,
String fileName)
Serialize a content into a targeted file, checking that the parent directory exists. |
static void |
touch(File folder,
String fileName)
Creates a file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void serialize(File folder,
String content,
String fileName)
throws IOException
folder - Filecontent - StringfileName - String
IOException
public static String read(File file)
throws IOException
file - File
IOExceptionpublic static Long getSize(File file)
public static void touch(File folder,
String fileName)
throws IOException
folder - FilefileName - String
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||