Package org.tools.io

Examples of org.tools.io.Resource


        return scenarios.containsKey(id);
    }

    public ServerScenario getScenario(int id) {
        // load scenario (complete)
        Resource resource = scenarios.get(id).getA();
        ServerScenario scenario = new ServerScenario();
        try {
            XMLHelper.read(resource, scenario);
        } catch (IOException | ParsingException ex) {
            LOG.log(Level.SEVERE, null, ex);
View Full Code Here


        parent.appendChild(createTerrain());
        parent.appendChild(createRiver());
        parent.appendChild(createResources());
        parent.appendChild(createMisc());
        parent.appendChild(createUnits());
        Resource resource = ResourceUtils.asResource("content.xml");
        XMLHelper.write(resource, parent);
    }
View Full Code Here

        list = new ArrayList<>(node.getChildCount());
        for (Node child: node.getChildren()) {
            child.checkNode("Piece");

            Resource resource = IOManager.getAsResource(Places.Music, base + "/" + child.getValue());
            list.add(resource);
        }
    }
View Full Code Here

TOP

Related Classes of org.tools.io.Resource

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.