@Test public void store() throws IOException { assertFalse(PropFiles.store(null, null)); assertFalse(PropFiles.store(null, null, false)); assertFalse(PropFiles.store(null, null, null, false)); PropFile empty = new PropFile(Context.named("test"), PropFile.Loc.Local); assertFalse(PropFiles.store(empty, null)); assertFalse(PropFiles.store(empty, "not a file", false)); File tmp = File.createTempFile("test", "store"); PropFile props = new PropFile(Context.named("test"), PropFile.Loc.Local); long now = System.currentTimeMillis(); props.add("test", String.valueOf(now)); assertTrue(PropFiles.store(props, tmp.getPath(), true)); PropFile loaded = new PropFile(Context.named("test"), PropFile.Loc.Local); PropFileReader.Default.load(new BufferedReader(new FileReader(tmp)), loaded); assertEquals(now, (long) Long.valueOf(loaded.get("test").value())); }
public static boolean store(PropFile propFile, String to) { return store(propFile, PropFileWriter.Default, to, false); }
PropFiles { public static boolean store(PropFile propFile, String to) { return store(propFile, PropFileWriter.Default, to, false); } }
PropFiles { public static boolean store(PropFile propFile, String to) { return store(propFile, PropFileWriter.Default, to, false); } private  PropFiles(); }
PropFiles { public static boolean store(PropFile propFile, String to) { return store(propFile, PropFileWriter.Default, to, false); } private  PropFiles(); static boolean load(String path, PropFile into); static boolean load(String path, PropFile into, boolean create); static boolean load(String path, PropFile into, boolean create, boolean printOnFNF); static PropFile load(String path, boolean create, boolean nullOnFNF); static boolean load(String path, PropFileReader propFileReader, PropFile into, boolean create, boolean printOnFNF); static boolean store(PropFile propFile, String to); static boolean store(PropFile propFile, String to, boolean create); static boolean store(PropFile propFile, PropFileWriter propFileWriter, String to, boolean create); static boolean store(PropFile propFile, PropFileWriter propFileWriter, String to,boolean create, boolean useFiltered); static String getFileName(PropFile propFile); }
PropFiles { public static boolean store(PropFile propFile, String to) { return store(propFile, PropFileWriter.Default, to, false); } private  PropFiles(); static boolean load(String path, PropFile into); static boolean load(String path, PropFile into, boolean create); static boolean load(String path, PropFile into, boolean create, boolean printOnFNF); static PropFile load(String path, boolean create, boolean nullOnFNF); static boolean load(String path, PropFileReader propFileReader, PropFile into, boolean create, boolean printOnFNF); static boolean store(PropFile propFile, String to); static boolean store(PropFile propFile, String to, boolean create); static boolean store(PropFile propFile, PropFileWriter propFileWriter, String to, boolean create); static boolean store(PropFile propFile, PropFileWriter propFileWriter, String to,boolean create, boolean useFiltered); static String getFileName(PropFile propFile);  }