Package com.kodcu.bean

Examples of com.kodcu.bean.RecentFiles


        try {
            YamlReader yamlReader =
                    new YamlReader(new FileReader(configPath.resolve("recentFiles.yml").toFile()));
            yamlReader.getConfig().setClassTag("RecentFiles", RecentFiles.class);
            RecentFiles readed = yamlReader.read(RecentFiles.class);

            readed.getFiles()
                    .stream()
                    .map(path -> Paths.get(path))
                    .forEach(recentFiles::add);
        } catch (YamlException e) {
            e.printStackTrace();
View Full Code Here


                .collect(Collectors.toList());

        File recentFileYml = configPath.resolve("recentFiles.yml").toFile();
        YamlWriter yamlWriter = new YamlWriter(new FileWriter(recentFileYml));
        yamlWriter.getConfig().setClassTag("RecentFiles", RecentFiles.class);
        yamlWriter.write(new RecentFiles(fileList));
        yamlWriter.close();

        //

        File configYml = configPath.resolve("config.yml").toFile();
View Full Code Here

TOP

Related Classes of com.kodcu.bean.RecentFiles

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.