edu.jhu.tmaj.util
Class FileManager

java.lang.Object
  extended by edu.jhu.tmaj.util.FileManager

public final class FileManager
extends java.lang.Object

Utilities for reading and writing files. All exceptions are thrown and error messages are never displayed as these methods are used on the server side as well as the client.


Method Summary
static java.io.File promptToOpenFile(javax.swing.JFileChooser fileChooser, java.awt.Component component, Preference preference)
          Open a file or directory
static java.io.File[] promptToOpenFiles(javax.swing.JFileChooser fileChooser, java.awt.Component component, Preference preference)
           
static java.io.File promptToSaveFile(javax.swing.JFileChooser fileChooser, java.awt.Component component, Preference preference, java.lang.String extention)
          Saves a file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

promptToOpenFiles

public static java.io.File[] promptToOpenFiles(javax.swing.JFileChooser fileChooser,
                                               java.awt.Component component,
                                               Preference preference)

promptToOpenFile

public static java.io.File promptToOpenFile(javax.swing.JFileChooser fileChooser,
                                            java.awt.Component component,
                                            Preference preference)
Open a file or directory


promptToSaveFile

public static java.io.File promptToSaveFile(javax.swing.JFileChooser fileChooser,
                                            java.awt.Component component,
                                            Preference preference,
                                            java.lang.String extention)
Saves a file