public class FileUtils extends Object
Constructor and Description |
---|
FileUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
deleteDir(File dir) |
static byte[] |
readToByteArray(File file) |
static byte[] |
readToByteArray(String path) |
static String |
readToString(File tmp) |
static String |
readToString(String path) |
static void |
writeToFile(File path,
byte[] data) |
static void |
writeToFile(File path,
String data) |
static void |
writeToFile(String path,
byte[] data) |
static void |
writeToFile(String path,
String data) |
public static void writeToFile(File path, byte[] data) throws IOException
IOException
public static void writeToFile(String path, byte[] data) throws IOException
IOException
public static void writeToFile(File path, String data) throws IOException
IOException
public static void writeToFile(String path, String data) throws IOException
IOException
public static byte[] readToByteArray(String path)
public static byte[] readToByteArray(File file)
public static boolean deleteDir(File dir)
Copyright © 2015. All rights reserved.