Package org.glassfish.admin.amx.util
Class FileUtils
- java.lang.Object
-
- org.glassfish.admin.amx.util.FileUtils
-
public final class FileUtils extends Object
The API that should be used to output from a Cmd running within the framework.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
fileToString(File src)
static String
fileToString(File src, int readBufferSize)
static void
stringToFile(String s, File dest)
-
-
-
Method Detail
-
fileToString
public static String fileToString(File src) throws FileNotFoundException, IOException
- Throws:
FileNotFoundException
IOException
-
fileToString
public static String fileToString(File src, int readBufferSize) throws FileNotFoundException, IOException
- Throws:
FileNotFoundException
IOException
-
stringToFile
public static void stringToFile(String s, File dest) throws IOException
- Throws:
IOException
-
-