|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproyecto.utilidades.OperacionesFicheros
public class OperacionesFicheros
OperacionesFicheros.
Clase con métodos estaticos para operaciones b�sicas con ficheros, por ejemplo:
Nested Class Summary | |
---|---|
static class |
OperacionesFicheros.Filtro
The Class Filtro. |
Constructor Summary | |
---|---|
OperacionesFicheros()
|
Method Summary | |
---|---|
static String |
cargarFichero(File nombreArchivo)
Cargar fichero. |
static void |
copy(File src,
File dst)
Copia un solo archivo. |
static void |
copyDirectorio(File srcDir,
File dstDir)
Copia un directorio con todo y su contendido. |
static boolean |
deleteDirectorio(File dir)
Delete directorio. |
static String |
getExtension(File f)
Devuelve la extension de un fichero dado. |
static String |
getNombreSinExtension(File f)
Devuelve el nombre de un fichero dado sin extensi�n. |
static void |
guardarFichero(File archivo,
String aTexto)
Guarda un Fichero con un texto en la zona indicada. |
static boolean |
validadorFileName(String lsFileName)
Valida un string, para montar Nombres validos. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OperacionesFicheros()
Method Detail |
---|
public static void copyDirectorio(File srcDir, File dstDir) throws IOException
srcDir
- src dirdstDir
- dst dir
IOException
- Signals that an I/O exception has occurred.public static boolean validadorFileName(String lsFileName)
lsFileName
- the ls file name
public static void copy(File src, File dst) throws IOException
src
- the srcdst
- the dst
IOException
- Signals that an I/O exception has occurred.public static boolean deleteDirectorio(File dir)
dir
- the dir
public static void guardarFichero(File archivo, String aTexto) throws Excepciones, IOException
archivo
- the archivoaTexto
- the a texto
Excepciones
- , IOException
Excepciones
- the excepciones
IOException
- Signals that an I/O exception has occurred.public static String getExtension(File f)
f
- File
public static String getNombreSinExtension(File f)
f
- ruta completa
public static String cargarFichero(File nombreArchivo) throws BadLocationException
nombreArchivo
- the nombre archivo
BadLocationException
- the bad location exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |