293031323334353637
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; }
5859606162636465666768
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)