赞
踩
public class MobileconfigUtil {
public static String createMobileconfig(String path, String name) throws IOException {
File file = new File(path);
if (!file.exists()) {
file.mkdirs();
}
String plistFile = ".mobileconfig";// 生成的文件名
final String PLIST_PATH = path + plistFile; // 下载路径
file = new File(PLIST_PATH);
if (!file.exists()) {//检查是否已经创建
try {
file.createNewFile();
} catch (IOException e) {
e.printStackTrace();
}
}
String plist = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+ "<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\&#
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。