Package tcg.common.util

Examples of tcg.common.util.SortedProperties


  }

  public static synchronized boolean saveSnapshot(DataStore datastore, File file)
  {
    //create a sorted properties for all datapoints
    SortedProperties snapshot = new SortedProperties();
    datastore.getDataTable().createSnapshot(snapshot);
   
    //maybe should check if the file exist and what todo if it is
    //TODO
   
    //save it into the file
    try
    {
      snapshot.store(new FileOutputStream(file.getAbsolutePath()), null);
    }
    catch (IOException ioe)
    {
      logger_.error("Can not create snapshot file: " + file.getAbsolutePath());
      logger_.error("Exception: " + ioe.getMessage());
View Full Code Here

TOP

Related Classes of tcg.common.util.SortedProperties

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.