public interface FileUtils
| Modifier and Type | Method and Description | 
|---|---|
void | 
addOnlyLayerNameListener(PropertyListener listener)
Añadir un listener a la lista de eventos 
 | 
void | 
cleanUpTempFiles()
Elimina los ficheros del directorio temporal. 
 | 
String | 
convertPathToMD5(String path)
Converts a string to MD5 
 | 
void | 
copyFile(String pathOrig,
        String pathDst)
Copia de ficheros 
 | 
void | 
createWorldFile(String fileName,
               AffineTransform at,
               int pxWidth,
               int pxHeight)
Crea un fichero de georeferenciación (world file) para un dataset
 determinado 
 | 
void | 
createWorldFile(String fileName,
               Extent ext,
               int pxWidth,
               int pxHeight)
Crea un fichero de georeferenciación (world file) para un dataset
 determinado 
 | 
String | 
formatFileSize(long size)
Formatea en forma de cadena un tamaño dado en bytes. 
 | 
String | 
getExtensionFromFileName(String file)
Obtiene la extensión del fichero a partir de su nombre. 
 | 
String | 
getFileNameFromCanonical(String file)
Obtiene el nombre de fichero sin la extensión ni la ruta. 
 | 
String | 
getFormatedRasterFileName(String name)
Deprecated.   
 | 
String | 
getLastPart(String string,
           String pattern)
Obtiene el último trozo de la cadena a partir de los caracteres que
 coincidan con el patrón. 
 | 
String | 
getNameWithoutExtension(String file)
Obtiene el nombre de fichero sin la extensión. 
 | 
String | 
getOnlyLayerName()
Obtiene el nombre único de la siguiente capa sin actualizar el contador. 
 | 
String | 
getRMFNameFromFileName(String fileName)
Obtiene el nombre del fichero RMF a partir del nombre del fichero. 
 | 
File | 
getTemporalFile()
Esta función crea el directorio para temporales y devuelve el manejador
 del directorio 
 | 
String | 
getTemporalPath()
Esta función crea el directorio para temporales y devuelve la ruta de este 
 | 
String | 
readFileEncoding(String file)
Obtiene la codificación de un fichero XML 
 | 
void | 
removeOnlyLayerNameListener(PropertyListener listener)
Elimina un listener de la lista de eventos 
 | 
String | 
usesOnlyLayerName()
La gestión de nombres únicos en la generación de capas se lleva de forma
 automática. 
 | 
void copyFile(String pathOrig, String pathDst) throws FileNotFoundException, IOException
pathOrig - Ruta de origenpathDst - Ruta de destino.FileNotFoundExceptionIOExceptionvoid createWorldFile(String fileName, Extent ext, int pxWidth, int pxHeight) throws IOException
fileName - Nombre completo del fichero de rasterext - pxWidth - Ancho en píxelespxHeight - Alto en píxelesIOExceptionvoid createWorldFile(String fileName, AffineTransform at, int pxWidth, int pxHeight) throws IOException
fileName - Nombre completo del fichero de rasterat - AffineTransformpxWidth - Ancho en píxelespxHeight - Alto en píxelesIOExceptionString formatFileSize(long size)
size - tamaño a formatearString getExtensionFromFileName(String file)
file - Nombre o ruta del ficheroString getNameWithoutExtension(String file)
file - Nombre o ruta del ficheroString getFileNameFromCanonical(String file)
file - Ruta del ficheroString getLastPart(String string, String pattern)
string - pattern - String readFileEncoding(String file)
file - Nombre del fichero XMLString getRMFNameFromFileName(String fileName)
fileName - Nombre del fichero raster de origenvoid cleanUpTempFiles()
File getTemporalFile()
String getTemporalPath()
String getFormatedRasterFileName(String name)
name - String convertPathToMD5(String path) throws NoSuchAlgorithmException
path - NoSuchAlgorithmExceptionString usesOnlyLayerName()
String getOnlyLayerName()
void addOnlyLayerNameListener(PropertyListener listener)
listener - void removeOnlyLayerNameListener(PropertyListener listener)
listener -