fr.umlv.unitex.editor
Class FileManager

java.lang.Object
  extended by fr.umlv.unitex.editor.FileManager

public class FileManager
extends java.lang.Object

This class provides methods for loading corpora


Constructor Summary
FileManager()
           
 
Method Summary
 void closeText()
           
 void convertToHtml(java.lang.String fileDestinationpath)
          convert a file to an HTML file
 void killTimer()
           
 javax.swing.text.Document load(java.io.File file, EditionTextArea textArea)
          Load an little endian Unicode texte file put it in a document
 void loadFile(java.io.File file)
          loads file and checks encoding type
 void newFile()
          load an empty text
 void save(java.lang.String absolutePath)
          saves a file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileManager

public FileManager()
Method Detail

loadFile

public void loadFile(java.io.File file)
loads file and checks encoding type

Parameters:
file - the text file

killTimer

public void killTimer()

save

public void save(java.lang.String absolutePath)
saves a file

Parameters:
absolutePath - the absolute path of the file

load

public javax.swing.text.Document load(java.io.File file,
                                      EditionTextArea textArea)
                               throws java.io.IOException,
                                      java.lang.IllegalArgumentException
Load an little endian Unicode texte file put it in a document

Parameters:
file - the text to load
textArea - aera where put the text
Throws:
java.io.IOException
java.lang.IllegalArgumentException

newFile

public void newFile()
load an empty text


closeText

public void closeText()

convertToHtml

public void convertToHtml(java.lang.String fileDestinationpath)
convert a file to an HTML file

Parameters:
fileDestinationpath - the file destination path