|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.util.fileFolder.FileFolderManager
public class FileFolderManager
Method Summary | |
---|---|
static void |
createFile(String cheminFichier,
String nomFichier,
String contenuFichier)
createFile : creation d'un fichier Param = cheminFichier = c:\\j2sdk\\public_html\\WAUploads\\WA0webSite10\\nomSite\\rep1\\rep2 nomFichier = index.html contenuFichier = code du fichier : " |
static void |
createFolder(File directory)
|
static void |
createFolder(String chemin)
creation d'un repertoire |
static void |
deleteFile(String chemin)
Deletes a file. |
static void |
deleteFolder(String chemin)
Deletes the specified directory recursively and quietly. |
static void |
deleteFolder(String chemin,
boolean throwException)
Deletes the specified directory recursively. |
static Collection<File> |
getAllFile(String chemin)
Returns all the files (and only the files, no directory) inside the given directory. |
static Collection<File> |
getAllImages(String chemin)
Returns all the image files (and only the files, no directory) inside the given directory. |
static Collection<File> |
getAllSubFolder(String chemin)
retourne une Collection d'objets File qui representent les repertoires (et seulement les repertoires, pas les fichiers) contenus dans le repertoire passe en parametre |
static Collection<File> |
getAllWebPages(String chemin)
Retourne une Collection d'objets File qui representent les fichiers du site web contenus dans le repertoire passe en parametre et ses sous repertoires |
static Collection<File> |
getAllWebPages2(String chemin)
getAllWebPages2 : retourne une Collection d'objets File qui representent les fichiers web (type HTML) contenus dans le repertoire passe en parametre et seulement dans ce repertoire Param = chemin du repertoire du site |
static String |
getCode(String cheminFichier,
String nomFichier)
getCode : Récupération du contenu d'un fichier Param = cheminFichier = c:\\j2sdk\\public_html\\WAUploads\\WA0webSite10\\nomSite\\rep1\\rep2 nomFichier = index.html |
static void |
renameFile(String cheminRep,
String name,
String newName)
renameFile : modification du nom d'un fichier Param = chemin du fichier |
static void |
renameFolder(String cheminRep,
String newCheminRep)
renameFolder : modification du nom d'un repertoire Param = chemin du repertoire |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Collection<File> getAllSubFolder(String chemin) throws UtilException
chemin
- le chemin du repertoire
UtilException
public static Collection<File> getAllFile(String chemin) throws UtilException
chemin
-
UtilException
public static Collection<File> getAllImages(String chemin) throws UtilException
chemin
-
UtilException
public static Collection<File> getAllWebPages(String chemin) throws UtilException
chemin
- le chemin du repertoire du site
UtilException
public static Collection<File> getAllWebPages2(String chemin) throws Exception
Exception
public static void createFolder(String chemin) throws UtilException
chemin
- le chemin du repertoire
UtilException
public static void createFolder(File directory) throws UtilException
UtilException
public static void renameFolder(String cheminRep, String newCheminRep) throws UtilException
UtilException
public static void deleteFolder(String chemin)
chemin
- the specified directorypublic static void deleteFolder(String chemin, boolean throwException) throws UtilException
chemin
- the specified directorythrowException
- set to false if you want to delete quietly - false otherwise.
UtilException
public static void createFile(String cheminFichier, String nomFichier, String contenuFichier) throws UtilException
UtilException
public static void renameFile(String cheminRep, String name, String newName) throws UtilException
UtilException
public static void deleteFile(String chemin) throws UtilException
UtilException
public static String getCode(String cheminFichier, String nomFichier) throws UtilException
UtilException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |