6.3.1.9.7. FileUtil

public class FileUtil

6.3.1.9.7.1. Methods

6.3.1.9.7.1.1. copy

public static void copy(InputStream is, OutputStream os)

6.3.1.9.7.1.2. copyRecursive

public static boolean copyRecursive(File from, File to)

6.3.1.9.7.1.3. copyStream

public static void copyStream(InputStream is, OutputStream os, byte[] buffer, int bufferSize)

6.3.1.9.7.1.4. createDir

public static synchronized void createDir(File dir)

6.3.1.9.7.1.5. deleteRecursive

public static boolean deleteRecursive(File fileOrDirectory)

6.3.1.9.7.1.6. getDirectorySize

public static long getDirectorySize(File dir)

6.3.1.9.7.1.7. getExtension

public static String getExtension(String filePath)

6.3.1.9.7.1.8. getFileNameByUri

public static String getFileNameByUri(Context context, Uri uri, String defaultName)

6.3.1.9.7.1.9. getPathSeparator

public static String getPathSeparator()

6.3.1.9.7.1.10. isDirectoryWritable

public static boolean isDirectoryWritable(File directory)

6.3.1.9.7.1.11. isIntegerParseInt

public static boolean isIntegerParseInt(String str)

6.3.1.9.7.1.12. move

public static boolean move(File from, File to)

6.3.1.9.7.1.13. readFromFile

public static String readFromFile(File filePath)

6.3.1.9.7.1.14. removeExtension

public static String removeExtension(String filePath)

6.3.1.9.7.1.15. renameAndDelete

public static boolean renameAndDelete(File fileOrDirectory)

6.3.1.9.7.1.16. unzipEntry

public static void unzipEntry(ZipInputStream zis, ZipEntry entry, byte[] buffer, File outputDir)

6.3.1.9.7.1.17. writeToFile

public static void writeToFile(File filePath, String sData)

6.3.1.9.7.1.18. writeToFile

public static void writeToFile(File filePath, String sData, boolean append)