Package com.company.client.domain

Examples of com.company.client.domain.Options


    public static void toXML(Object xmlTree, FileOutputStream fos) {
        xStream.toXML(xmlTree, fos);
    }

    public static Options optionsFromFile(FileInputStream fis) {
      Options options = new Options();
        xStream.fromXML(fis, options);
        return options;
    }
View Full Code Here


        try {
            fis = new FileInputStream(OPTIES_FILE);
            return Marshaler.optionsFromFile(fis);
        } catch (FileNotFoundException e) {
            LOGGER.debug("Make new Options...");
            return new Options();
        } catch (Exception e) {
            throw new RuntimeException(e);
        } finally {
            try {
                if (fis != null)
View Full Code Here

TOP

Related Classes of com.company.client.domain.Options

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.