|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdata.importers.Importer
public final class Importer
Data layer manager to import external files. It detects the kind of file and delegates (manually) the importation process to the appropiate filetype handler
Constructor Summary | |
---|---|
Importer()
|
Method Summary | |
---|---|
static void |
fillFileFilter(javax.swing.JFileChooser jfc)
That method setups a FileChooser to allow only the supported filetypes. |
static java.io.FilenameFilter |
getAllFilenameFilter()
|
private static java.lang.String |
getFreeName(java.lang.String name)
Finds a free name (identificator) for the matrix |
static Matrix |
importMatrix(java.io.File f)
This function reads the given file and parse the data in it if applicable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Importer()
Method Detail |
---|
public static final Matrix importMatrix(java.io.File f) throws DataException
f
- The File to be imported
DataException
- If there is any problem opening or reading the filepublic static void fillFileFilter(javax.swing.JFileChooser jfc)
jfc
- The FileChooser to fillpublic static java.io.FilenameFilter getAllFilenameFilter()
private static java.lang.String getFreeName(java.lang.String name)
name
- The base name of the matrix
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |