|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttico.editor.TFileHandler
public class TFileHandler
Static class that manages the current editing project internal files.
Constructor Summary | |
---|---|
TFileHandler()
|
Method Summary | |
---|---|
static void |
cleanCurrentDirectory()
Deletes all the current directory contents. |
static java.lang.String |
convertToAbsolute(java.lang.String path)
Converts the specified internal file partial path to
an absolute path adding the current directory path. |
static java.lang.String |
convertToPartial(java.io.File file)
Converts the specified internal file absolute path to a
current directory partial path. |
static java.lang.String |
convertToPartial(java.lang.String path)
Converts the specified internal file absolute path to a
current directory partial path. |
static void |
copyFile(java.io.File in,
java.io.File out)
Copies the content of an in file to an
out file. |
static void |
deleteCurrentDirectory()
Deletes the current directory and all its contents. |
static void |
deleteDirectory(java.io.File directory)
Deletes the specified directory and all its contents. |
static java.io.File |
getCurrentDirectory()
Returns the editor internal currentDirectory . |
static java.lang.String |
getCurrentDirectoryPath()
Returns the editor internal currentDirectoryPath . |
static java.lang.String |
getExtension(java.lang.String filePath)
|
static java.lang.String |
getFilename(java.lang.String filePath)
|
static java.io.File |
importFile(java.io.File file)
Imports the specified file to the internal application
structure. |
static java.io.File |
importFile(java.lang.String fileAbsolutePath)
Imports the specified file to the internal application
structure. |
static void |
remove(java.lang.String fileAbsolutePath)
Removes the specified file from the internal application
structure. |
static java.lang.String |
removeDirectoryPath(java.lang.String directory,
java.lang.String path)
Removes the specified directory from the specified
path . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TFileHandler()
Method Detail |
---|
public static java.io.File importFile(java.lang.String fileAbsolutePath) throws java.io.IOException
file
to the internal application
structure.
fileAbsolutePath
- The specified file
fileAbsolutePath
java.io.IOException
- If there is any problem importing the filepublic static java.io.File importFile(java.io.File file) throws java.io.IOException
file
to the internal application
structure.
file
- The specified file
java.io.IOException
- If there is any problem importing the filepublic static void remove(java.lang.String fileAbsolutePath)
file
from the internal application
structure.
fileAbsolutePath
- The specified file
fileAbsolutePathpublic static java.io.File getCurrentDirectory()
currentDirectory
.
currentDirectory
public static java.lang.String getCurrentDirectoryPath()
currentDirectoryPath
.
currentDirectoryPath
public static java.lang.String convertToPartial(java.io.File file)
file
absolute path to a
current directory partial path.
file
- The specified internal file
file
partial pathpublic static java.lang.String convertToPartial(java.lang.String path)
file
absolute path to a
current directory partial path.
path
- The specified internal file
path
file
partial pathpublic static java.lang.String removeDirectoryPath(java.lang.String directory, java.lang.String path)
directory
from the specified
path
.
directory
- The specified directory
path
- The specified path
public static java.lang.String convertToAbsolute(java.lang.String path)
file
partial path to
an absolute path adding the current directory path.
path
- The specified internal file
partial path
file
absolute pathpublic static void deleteCurrentDirectory()
public static void cleanCurrentDirectory()
public static void deleteDirectory(java.io.File directory)
directory
and all its contents.
directory
- The specified directory
public static void copyFile(java.io.File in, java.io.File out) throws java.io.IOException
in
file to an
out
file.
in
- The in
fileout
- The out
file
java.io.IOException
- If there is a problem with any of both filespublic static java.lang.String getFilename(java.lang.String filePath)
public static java.lang.String getExtension(java.lang.String filePath)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |