|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.umlv.unitex.editor.FileManager
public class FileManager
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 |
---|
public FileManager()
Method Detail |
---|
public void loadFile(java.io.File file)
file
- the text filepublic void killTimer()
public void save(java.lang.String absolutePath)
absolutePath
- the absolute path of the filepublic javax.swing.text.Document load(java.io.File file, EditionTextArea textArea) throws java.io.IOException, java.lang.IllegalArgumentException
file
- the text to loadtextArea
- aera where put the text
java.io.IOException
java.lang.IllegalArgumentException
public void newFile()
public void closeText()
public void convertToHtml(java.lang.String fileDestinationpath)
fileDestinationpath
- the file destination path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |