@Test public void string2File() throws Exception { }
public static boolean string2File(File file, String data) throws IOException { if (!file.getParentFile().exists()) { file.getParentFile().mkdirs(); } FileWriter writer = null; try { writer = new FileWriter(file, false); writer.write(data); } finally { if (writer != null) { writer.close(); } } return true; }
FileUtils { public static boolean string2File(File file, String data) throws IOException { if (!file.getParentFile().exists()) { file.getParentFile().mkdirs(); } FileWriter writer = null; try { writer = new FileWriter(file, false); writer.write(data); } finally { if (writer != null) { writer.close(); } } return true; } }
FileUtils { public static boolean string2File(File file, String data) throws IOException { if (!file.getParentFile().exists()) { file.getParentFile().mkdirs(); } FileWriter writer = null; try { writer = new FileWriter(file, false); writer.write(data); } finally { if (writer != null) { writer.close(); } } return true; }  }
FileUtils { public static boolean string2File(File file, String data) throws IOException { if (!file.getParentFile().exists()) { file.getParentFile().mkdirs(); } FileWriter writer = null; try { writer = new FileWriter(file, false); writer.write(data); } finally { if (writer != null) { writer.close(); } } return true; }  static String getBaseDirName(); static String getUserHomeDir(String base); static String file2String(File file); static String file2String(Class clazz, String relativePath, String encoding); static List<String> readLines(File file); static boolean string2File(File file, String data); static boolean cleanDirectory(File dir); }
FileUtils { public static boolean string2File(File file, String data) throws IOException { if (!file.getParentFile().exists()) { file.getParentFile().mkdirs(); } FileWriter writer = null; try { writer = new FileWriter(file, false); writer.write(data); } finally { if (writer != null) { writer.close(); } } return true; }  static String getBaseDirName(); static String getUserHomeDir(String base); static String file2String(File file); static String file2String(Class clazz, String relativePath, String encoding); static List<String> readLines(File file); static boolean string2File(File file, String data); static boolean cleanDirectory(File dir); static final String LINE_SEPARATOR; }