Package com.mrbussy.ratp.io

Examples of com.mrbussy.ratp.io.PlanningFileHandler


    try {
      if ((this.filename != filename) && (filename != null))
        this.filename = filename;

      // Create a new planning file handler
      PlanningFileHandler pfh = new PlanningFileHandler(this);
      // Open a new file output stream
      OutputStream stream = new FileOutputStream(this.filename);

      // Save the current planning to the stream
      pfh.save(stream);

      // Close the current stream
      stream.close();
      // Clean up
      pfh = null;
View Full Code Here


    if (new File(filename).exists()) {
      // file is a real file

      // Create the PlanningFileHandler instance
      PlanningFileHandler pfh = new PlanningFileHandler(this);
      InputStream stream;

      // Open the filestream with the file
      stream = new FileInputStream(filename);

      // Load the planning into this window
      pfh.load(stream);

      // Close the current stream
      stream.close();

      // When loaded: Discard the file handler;
View Full Code Here

TOP

Related Classes of com.mrbussy.ratp.io.PlanningFileHandler

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.