java.lang.Object
net.sourceforge.jeuclid.app.mathviewer.FileIO

public final class FileIO extends Object
File I/O support functionality for MathViewer.
Version:
$Revision: cca61eec2241 $
  • Method Details

    • getInstance

      public static FileIO getInstance()
      Retrieve the FileIO object.
      Returns:
      the FileIO object
    • selectFileToOpen

      public File selectFileToOpen(Frame parent)
      Select a file.
      Parameters:
      parent - Frame of the parent
      Returns:
      A File or null.
    • loadFile

      public Document loadFile(Frame parent, File selectedFile)
      Load the given file.
      Parameters:
      parent - Frame of parent window
      selectedFile - File object to load.
      Returns:
      a parsed Document or null
    • saveDocument

      public void saveDocument(Frame parent, Node document, MutableLayoutContext params)
      Save a document.
      Parameters:
      parent - frame of parent.
      document - the MML document to save.
      params - rendering parameters.