当前位置:   article > 正文

创建mobileconfig文件_0jru.mobileconfig

0jru.mobileconfig

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\&#

本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号