es.mcu.yingo.utils.fichero
Class UtilFicheroImp

java.lang.Object
  extended by es.mcu.yingo.utils.fichero.UtilFicheroImp
All Implemented Interfaces:
UtilFichero

public class UtilFicheroImp
extends java.lang.Object
implements UtilFichero

Implementación estandar del interfaz UtilFichero y que constituye un gestor de ficheros que permite crear, borrar y manipular ficheros

Clase de utilidades de Fichero. Está siempre asociada a un directorio base que se utilizará para recuperar de este directorio archivos o crear en dicho directorio ficheros.

Author:
carlos.garcia.h

Field Summary
static java.lang.String CONSTANTE_MD5
          Clave para definir el resumen criptográfico MD5
static java.lang.String CONSTANTE_SHA1
          Clave para definir el resumen criptográfico SHA1
(package private)  org.apache.commons.logging.Log logger
           
private  java.lang.String pathBase
          Directorio base
(package private)  java.lang.String pathIntermedio
          Path intermedio que se concatenara al path base
 
Constructor Summary
UtilFicheroImp()
           
 
Method Summary
(package private)  boolean anadirPath(java.lang.StringBuilder res, java.lang.String cadena, boolean bBase)
          Añade la cadena al StringBuilder, añadiendo o no el caracter de File.separator
private  boolean anadirPathIntermedio(java.lang.StringBuilder res)
          Añade el path intermedio configurado en el atributo de la clase al path total
 void borrarFichero(java.lang.String pathRelativoFichero)
          Borra un fichero o directorio con el path Relativo
 void borrarFichero(java.lang.String pathRelativo, java.lang.String nombreFichero)
          Borra un fichero o directorio con el path Relativo y el nombre del fichero
 void borrarFicheroYDirectorioSiVacio(java.lang.String pathRelativoFichero)
          Borra el directorio y el fichero si al borrar el fichero este se encuentra vacío
private  void crearPath(java.lang.String rutaRelativa)
          Crea la ruta relativa de directorios
 java.lang.String crearZip(java.lang.String[] nombreFicheros, java.lang.String[] destinoFicheros)
          Crea un fichero en formato zip y devuelve la ruta de éste
protected  void escribir(java.io.InputStream miInputStream, java.io.OutputStream miOutputStream)
          Lee el inputStream y lo escribe en el outputstream
 java.lang.String escribirFichero(java.io.InputStream miInputStream, java.lang.String pathRelativoFichero)
          Escribe un fichero a partir del InputStream
 java.lang.String escribirFichero(java.io.InputStream miInputStream, java.lang.String pathRelativo, java.lang.String nombreFichero)
          Escribe un fichero en el path inicial, con el nombre que se le pasa
 java.lang.String escribirFicheroDeString(java.lang.String cadenaFichero, java.lang.String pathRelativoFichero)
          Escribe un fichero con el contenido del String cadena Fichero en la dirección relativa del fichero
 java.lang.String escribirFicheroDeString(java.lang.String cadenaFichero, java.lang.String pathRelativo, java.lang.String nombreFichero)
          Escribe un fichero con el contenido de una cadena, el el directorio y con el nombre del fichero indicado
 void escribirFicheroToOutputStream(java.lang.String pathRelativoFichero, java.io.OutputStream miOutputStream)
          Escribe el fichero definido por el path relativo en el OutputStream
 void escribirFicheroToOutputStream(java.lang.String pathRelativo, java.lang.String nombreFichero, java.io.OutputStream miOutputStream)
          Escribe el fichero definido por el path relativo y el nombre de fichero en el OutputStream
 boolean esDirectorioVacio(java.lang.String pathRelativoFichero)
          Devuelve true si es un directorio y está vacio, en el resto de casos (fichero, directorio no vacío, etc..)
 boolean esDirectorioVacio(java.lang.String pathRelativo, java.lang.String nombreFichero)
          Devuelve true si es un directorio y está vacio, en el resto de casos (fichero, directorio no vacío, etc..)
 boolean esFichero(java.lang.String pathRelativoFichero)
          Devuelve si existe el fichero
 boolean esFichero(java.lang.String pathRelativo, java.lang.String nombreFichero)
          Devuelve si existe el fichero
 java.lang.String getPathBase()
          Devuelve la ruta base del manejador de ficheros
 java.lang.String getPathIntermedio()
          Ruta intermedia que se utulizará entre el path base y el nombre del fichero
 java.lang.String getPathRelativoFichero(java.lang.String pathRelativo, java.lang.String nombreFichero)
          Obtiene el path relatico del fichero
 java.lang.String getPathTotal(java.lang.String pathRelativoFichero)
          Devuelve el la ruta absoluta con del path relativo del fichero
 java.lang.String getPathTotal(java.lang.String pathRelativo, java.lang.String nombreFichero)
          Consigue el path total del fichero
(package private)  java.io.File obtenerFile(java.lang.String pathRelativo, java.lang.String nombreFichero)
          Obtiene el objeto File del pathRelativo y del nombreFichero
 java.io.InputStream obtenerInputStreamFichero(java.lang.String pathRelativoFichero)
          Devuelve el InputStream de un fichero
 java.io.InputStream obtenerInputStreamFichero(java.lang.String pathRelativo, java.lang.String nombreFichero)
          Devuelve el InputStream de un fichero
 java.lang.String obtenerMD5Fichero(java.lang.String pathRelativoFichero)
          Obtiene el checkSum MD5 del fichero del fichero
 java.lang.String obtenerMD5Fichero(java.lang.String pathRelativo, java.lang.String nombreFichero)
          Obtiene el checkSum MD5 del fichero definido por el path relativo y el nombre del fichero
 java.lang.String obtenerMimeFichero(java.lang.String pathRelativoFichero)
          Obtiene el tipo Mime del fichero
 java.lang.String obtenerMimeFichero(java.lang.String pathRelativo, java.lang.String nombreFichero)
          Obtiene el tipo Mime del fichero con el path relativo y el nombre de fichero
private  java.lang.String obtenerResumenCriptografico(java.lang.String pathRelativo, java.lang.String nombreFichero, java.lang.String digest)
          Obtiene el checkSum SHA1 ó MD5 del fichero definido por el path relativo y el nombre del fichero
private  java.lang.String obtenerResumenCriptograficoBase64(java.lang.String pathRelativo, java.lang.String nombreFichero, java.lang.String digest)
          Obtiene el checkSum SHA1 ó MD5 del fichero definido por el path relativo y el nombre del fichero
 java.lang.String obtenerSHA1Fichero(java.lang.String pathRelativoFichero)
          Obtiene el checkSum SHA1 del fichero del fichero
 java.lang.String obtenerSHA1Fichero(java.lang.String pathRelativo, java.lang.String nombreFichero)
          Obtiene el checkSum SHA1 del fichero definido por el path relativo y el nombre del fichero
 java.lang.String obtenerSHA1FicheroBase64(java.lang.String pathRelativoFichero)
          Obtiene el checkSum SHA1 del fichero en base64
 java.lang.String obtenerSHA1FicheroBase64(java.lang.String pathRelativo, java.lang.String nombreFichero)
          Obtiene el checkSum SHA1 del fichero definido por el path relativo y el nombre del fichero
 java.lang.String obtenerStringDeFichero(java.lang.String pathRelativoFichero)
          Devuelve un String con el contenido del fichero
 java.lang.String obtenerStringDeFichero(java.lang.String pathRelativo, java.lang.String nombreFichero)
          Devuelve un String con el contenido del fichero, en el directorio relativo y con el nombre inidicado
 java.lang.Long obtenerTamanoFichero(java.lang.String pathRelativoFichero)
          Obtiene el tamaño del fichero
 java.lang.Long obtenerTamanoFichero(java.lang.String pathRelativo, java.lang.String nombreFichero)
          Obtiene el tamaño del fichero
private  void pasarSeguridad(java.lang.String path)
          Implemetación de eguridad en los ficheros
 void setPathBase(java.lang.String pathBase)
          Asigna la ruta base del manejador de ficheros
 void setPathIntermedio(java.lang.String pathIntermedio)
          Ruta intermedia que se utulizará entre el path base y el nombre del fichero
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

final org.apache.commons.logging.Log logger

CONSTANTE_SHA1

public static final java.lang.String CONSTANTE_SHA1
Clave para definir el resumen criptográfico SHA1

See Also:
Constant Field Values

CONSTANTE_MD5

public static final java.lang.String CONSTANTE_MD5
Clave para definir el resumen criptográfico MD5

See Also:
Constant Field Values

pathBase

private java.lang.String pathBase
Directorio base


pathIntermedio

java.lang.String pathIntermedio
Path intermedio que se concatenara al path base

Constructor Detail

UtilFicheroImp

public UtilFicheroImp()
Method Detail

getPathBase

public java.lang.String getPathBase()
Devuelve la ruta base del manejador de ficheros

Specified by:
getPathBase in interface UtilFichero
Returns:

setPathBase

public void setPathBase(java.lang.String pathBase)
Asigna la ruta base del manejador de ficheros

Specified by:
setPathBase in interface UtilFichero
Parameters:
pathBase -

pasarSeguridad

private void pasarSeguridad(java.lang.String path)
                     throws FicheroYingoException
Implemetación de eguridad en los ficheros

Parameters:
path -
Throws:
FicheroYingoException
java.io.UnsupportedEncodingException

crearPath

private void crearPath(java.lang.String rutaRelativa)
                throws FicheroYingoException
Crea la ruta relativa de directorios

Parameters:
rutaRelativa -
Throws:
FicheroYingoException

borrarFichero

public void borrarFichero(java.lang.String pathRelativoFichero)
                   throws FicheroYingoException
Borra un fichero o directorio con el path Relativo

Specified by:
borrarFichero in interface UtilFichero
Parameters:
pathRelativoFichero -
Throws:
FicheroYingoException

borrarFichero

public void borrarFichero(java.lang.String pathRelativo,
                          java.lang.String nombreFichero)
                   throws FicheroYingoException
Borra un fichero o directorio con el path Relativo y el nombre del fichero

Specified by:
borrarFichero in interface UtilFichero
Parameters:
pathRelativo -
nombreFichero -
Throws:
FicheroYingoException

borrarFicheroYDirectorioSiVacio

public void borrarFicheroYDirectorioSiVacio(java.lang.String pathRelativoFichero)
                                     throws FicheroYingoException
Borra el directorio y el fichero si al borrar el fichero este se encuentra vacío

Specified by:
borrarFicheroYDirectorioSiVacio in interface UtilFichero
Parameters:
pathRelativoFichero -
Throws:
FicheroYingoException

anadirPathIntermedio

private boolean anadirPathIntermedio(java.lang.StringBuilder res)
Añade el path intermedio configurado en el atributo de la clase al path total

Parameters:
res -
Returns:
Throws:
FicheroYingoException

getPathRelativoFichero

public java.lang.String getPathRelativoFichero(java.lang.String pathRelativo,
                                               java.lang.String nombreFichero)
Obtiene el path relatico del fichero

Specified by:
getPathRelativoFichero in interface UtilFichero
Parameters:
pathRelativo -
nombreFichero -
Returns:

anadirPath

boolean anadirPath(java.lang.StringBuilder res,
                   java.lang.String cadena,
                   boolean bBase)
Añade la cadena al StringBuilder, añadiendo o no el caracter de File.separator

Parameters:
res -
cadena -
bBase -

getPathTotal

public java.lang.String getPathTotal(java.lang.String pathRelativo,
                                     java.lang.String nombreFichero)
                              throws FicheroYingoException
Consigue el path total del fichero

Specified by:
getPathTotal in interface UtilFichero
Parameters:
pathRelativo -
nombreFichero -
Returns:
Throws:
FicheroYingoException

getPathTotal

public java.lang.String getPathTotal(java.lang.String pathRelativoFichero)
                              throws FicheroYingoException
Devuelve el la ruta absoluta con del path relativo del fichero

Specified by:
getPathTotal in interface UtilFichero
Parameters:
pathRelativoFichero -
Returns:
Throws:
FicheroYingoException

escribirFicheroDeString

public java.lang.String escribirFicheroDeString(java.lang.String cadenaFichero,
                                                java.lang.String pathRelativoFichero)
                                         throws java.io.IOException,
                                                FicheroYingoException
Escribe un fichero con el contenido del String cadena Fichero en la dirección relativa del fichero

Specified by:
escribirFicheroDeString in interface UtilFichero
Parameters:
cadenaFichero -
pathRelativoFichero -
Returns:
Throws:
java.io.IOException
FicheroYingoException

escribirFicheroToOutputStream

public void escribirFicheroToOutputStream(java.lang.String pathRelativo,
                                          java.lang.String nombreFichero,
                                          java.io.OutputStream miOutputStream)
                                   throws java.io.IOException,
                                          FicheroYingoException
Escribe el fichero definido por el path relativo y el nombre de fichero en el OutputStream

Specified by:
escribirFicheroToOutputStream in interface UtilFichero
Parameters:
pathRelativo -
nombreFichero -
miOutputStream -
Throws:
java.io.IOException
FicheroYingoException

escribirFicheroToOutputStream

public void escribirFicheroToOutputStream(java.lang.String pathRelativoFichero,
                                          java.io.OutputStream miOutputStream)
                                   throws java.io.IOException,
                                          FicheroYingoException
Escribe el fichero definido por el path relativo en el OutputStream

Specified by:
escribirFicheroToOutputStream in interface UtilFichero
Parameters:
pathRelativoFichero -
miOutputStream -
Throws:
java.io.IOException
FicheroYingoException

escribirFichero

public java.lang.String escribirFichero(java.io.InputStream miInputStream,
                                        java.lang.String pathRelativoFichero)
                                 throws java.io.IOException,
                                        FicheroYingoException
Escribe un fichero a partir del InputStream

Specified by:
escribirFichero in interface UtilFichero
Parameters:
miInputStream -
pathRelativoFichero -
Returns:
Throws:
java.io.IOException
FicheroYingoException

escribirFicheroDeString

public java.lang.String escribirFicheroDeString(java.lang.String cadenaFichero,
                                                java.lang.String pathRelativo,
                                                java.lang.String nombreFichero)
                                         throws java.io.IOException,
                                                FicheroYingoException
Escribe un fichero con el contenido de una cadena, el el directorio y con el nombre del fichero indicado

Specified by:
escribirFicheroDeString in interface UtilFichero
Parameters:
cadenaFichero -
pathRelativo -
nombreFichero -
Returns:
Throws:
java.io.IOException
FicheroYingoException

escribirFichero

public java.lang.String escribirFichero(java.io.InputStream miInputStream,
                                        java.lang.String pathRelativo,
                                        java.lang.String nombreFichero)
                                 throws java.io.IOException,
                                        FicheroYingoException
Escribe un fichero en el path inicial, con el nombre que se le pasa

Specified by:
escribirFichero in interface UtilFichero
Returns:
Throws:
FicheroYingoException
java.io.IOException

escribir

protected void escribir(java.io.InputStream miInputStream,
                        java.io.OutputStream miOutputStream)
                 throws java.io.IOException
Lee el inputStream y lo escribe en el outputstream

Parameters:
miInputStream -
miOutputStream -
Throws:
java.io.IOException

crearZip

public java.lang.String crearZip(java.lang.String[] nombreFicheros,
                                 java.lang.String[] destinoFicheros)
                          throws java.lang.Exception
Crea un fichero en formato zip y devuelve la ruta de éste

Specified by:
crearZip in interface UtilFichero
Parameters:
nombreFicheros -
destinoFicheros -
Returns:
Throws:
java.lang.Exception

obtenerStringDeFichero

public java.lang.String obtenerStringDeFichero(java.lang.String pathRelativo,
                                               java.lang.String nombreFichero)
                                        throws java.io.IOException,
                                               FicheroYingoException
Devuelve un String con el contenido del fichero, en el directorio relativo y con el nombre inidicado

Specified by:
obtenerStringDeFichero in interface UtilFichero
Parameters:
pathRelativo -
nombreFichero -
Returns:
Throws:
java.io.IOException
FicheroYingoException

obtenerStringDeFichero

public java.lang.String obtenerStringDeFichero(java.lang.String pathRelativoFichero)
                                        throws java.io.IOException,
                                               FicheroYingoException
Devuelve un String con el contenido del fichero

Specified by:
obtenerStringDeFichero in interface UtilFichero
Parameters:
pathRelativoFichero -
Returns:
Throws:
java.io.IOException
FicheroYingoException

obtenerInputStreamFichero

public java.io.InputStream obtenerInputStreamFichero(java.lang.String pathRelativo,
                                                     java.lang.String nombreFichero)
                                              throws java.io.FileNotFoundException,
                                                     FicheroYingoException
Devuelve el InputStream de un fichero

Specified by:
obtenerInputStreamFichero in interface UtilFichero
Parameters:
pathRelativo -
nombreFichero -
Returns:
Throws:
java.io.FileNotFoundException
FicheroYingoException

obtenerInputStreamFichero

public java.io.InputStream obtenerInputStreamFichero(java.lang.String pathRelativoFichero)
                                              throws java.io.FileNotFoundException,
                                                     FicheroYingoException
Devuelve el InputStream de un fichero

Specified by:
obtenerInputStreamFichero in interface UtilFichero
Parameters:
pathRelativo -
nombreFichero -
Returns:
Throws:
java.io.FileNotFoundException
FicheroYingoException

obtenerMimeFichero

public java.lang.String obtenerMimeFichero(java.lang.String pathRelativo,
                                           java.lang.String nombreFichero)
                                    throws FicheroYingoException
Obtiene el tipo Mime del fichero con el path relativo y el nombre de fichero

Specified by:
obtenerMimeFichero in interface UtilFichero
Parameters:
pathRelativo -
nombreFichero -
Returns:
Throws:
FicheroYingoException

obtenerMimeFichero

public java.lang.String obtenerMimeFichero(java.lang.String pathRelativoFichero)
                                    throws FicheroYingoException
Obtiene el tipo Mime del fichero

Specified by:
obtenerMimeFichero in interface UtilFichero
Parameters:
pathRelativoFichero -
Returns:
Throws:
FicheroYingoException

obtenerFile

java.io.File obtenerFile(java.lang.String pathRelativo,
                         java.lang.String nombreFichero)
                   throws FicheroYingoException
Obtiene el objeto File del pathRelativo y del nombreFichero

Parameters:
pathRelativo -
nombreFichero -
Returns:
Throws:
FicheroYingoException

esDirectorioVacio

public boolean esDirectorioVacio(java.lang.String pathRelativoFichero)
                          throws FicheroYingoException
Devuelve true si es un directorio y está vacio, en el resto de casos (fichero, directorio no vacío, etc..) devuelve false

Specified by:
esDirectorioVacio in interface UtilFichero
Parameters:
pathRelativoFichero -
Returns:
Throws:
FicheroYingoException

esDirectorioVacio

public boolean esDirectorioVacio(java.lang.String pathRelativo,
                                 java.lang.String nombreFichero)
                          throws FicheroYingoException
Devuelve true si es un directorio y está vacio, en el resto de casos (fichero, directorio no vacío, etc..) devuelve false

Specified by:
esDirectorioVacio in interface UtilFichero
Parameters:
pathRelativo -
nombreFichero -
Returns:
Throws:
FicheroYingoException

esFichero

public boolean esFichero(java.lang.String pathRelativo,
                         java.lang.String nombreFichero)
                  throws FicheroYingoException
Devuelve si existe el fichero

Specified by:
esFichero in interface UtilFichero
Parameters:
pathRelativo -
nombreFichero -
Returns:
Throws:
FicheroYingoException

esFichero

public boolean esFichero(java.lang.String pathRelativoFichero)
                  throws FicheroYingoException
Devuelve si existe el fichero

Specified by:
esFichero in interface UtilFichero
Parameters:
pathRelativoFichero -
Returns:
Throws:
FicheroYingoException

obtenerTamanoFichero

public java.lang.Long obtenerTamanoFichero(java.lang.String pathRelativoFichero)
                                    throws java.security.NoSuchAlgorithmException,
                                           java.io.IOException,
                                           FicheroYingoException
Obtiene el tamaño del fichero

Specified by:
obtenerTamanoFichero in interface UtilFichero
Parameters:
pathRelativoFichero -
Returns:
Throws:
java.security.NoSuchAlgorithmException
java.io.IOException
FicheroYingoException

obtenerTamanoFichero

public java.lang.Long obtenerTamanoFichero(java.lang.String pathRelativo,
                                           java.lang.String nombreFichero)
                                    throws java.security.NoSuchAlgorithmException,
                                           java.io.IOException,
                                           FicheroYingoException
Obtiene el tamaño del fichero

Specified by:
obtenerTamanoFichero in interface UtilFichero
Parameters:
pathRelativo -
nombreFichero -
Returns:
Throws:
java.security.NoSuchAlgorithmException
java.io.IOException
FicheroYingoException

obtenerResumenCriptografico

private java.lang.String obtenerResumenCriptografico(java.lang.String pathRelativo,
                                                     java.lang.String nombreFichero,
                                                     java.lang.String digest)
                                              throws java.security.NoSuchAlgorithmException,
                                                     java.io.IOException,
                                                     FicheroYingoException
Obtiene el checkSum SHA1 ó MD5 del fichero definido por el path relativo y el nombre del fichero

Parameters:
pathRelativo -
nombreFichero -
Returns:
Throws:
java.security.NoSuchAlgorithmException
java.io.IOException
FicheroYingoException

obtenerResumenCriptograficoBase64

private java.lang.String obtenerResumenCriptograficoBase64(java.lang.String pathRelativo,
                                                           java.lang.String nombreFichero,
                                                           java.lang.String digest)
                                                    throws java.security.NoSuchAlgorithmException,
                                                           java.io.IOException,
                                                           FicheroYingoException
Obtiene el checkSum SHA1 ó MD5 del fichero definido por el path relativo y el nombre del fichero

Parameters:
pathRelativo -
nombreFichero -
Returns:
Throws:
java.security.NoSuchAlgorithmException
java.io.IOException
FicheroYingoException

getPathIntermedio

public java.lang.String getPathIntermedio()
Ruta intermedia que se utulizará entre el path base y el nombre del fichero

Specified by:
getPathIntermedio in interface UtilFichero
Returns:
the pathIntermedio

setPathIntermedio

public void setPathIntermedio(java.lang.String pathIntermedio)
Ruta intermedia que se utulizará entre el path base y el nombre del fichero

Specified by:
setPathIntermedio in interface UtilFichero
Parameters:
pathIntermedio - the pathIntermedio to set

obtenerMD5Fichero

public java.lang.String obtenerMD5Fichero(java.lang.String pathRelativoFichero)
                                   throws java.security.NoSuchAlgorithmException,
                                          java.io.IOException,
                                          FicheroYingoException
Obtiene el checkSum MD5 del fichero del fichero

Specified by:
obtenerMD5Fichero in interface UtilFichero
Parameters:
pathRelativoFichero -
Returns:
Throws:
java.security.NoSuchAlgorithmException
java.io.IOException
FicheroYingoException
FicheroYingoException

obtenerMD5Fichero

public java.lang.String obtenerMD5Fichero(java.lang.String pathRelativo,
                                          java.lang.String nombreFichero)
                                   throws java.security.NoSuchAlgorithmException,
                                          java.io.IOException,
                                          FicheroYingoException
Obtiene el checkSum MD5 del fichero definido por el path relativo y el nombre del fichero

Specified by:
obtenerMD5Fichero in interface UtilFichero
Parameters:
pathRelativo -
nombreFichero -
Returns:
Throws:
java.security.NoSuchAlgorithmException
java.io.IOException
FicheroYingoException

obtenerSHA1Fichero

public java.lang.String obtenerSHA1Fichero(java.lang.String pathRelativoFichero)
                                    throws java.security.NoSuchAlgorithmException,
                                           java.io.IOException,
                                           FicheroYingoException
Obtiene el checkSum SHA1 del fichero del fichero

Specified by:
obtenerSHA1Fichero in interface UtilFichero
Parameters:
pathRelativoFichero -
Returns:
Throws:
java.security.NoSuchAlgorithmException
java.io.IOException
FicheroYingoException
FicheroYingoException

obtenerSHA1FicheroBase64

public java.lang.String obtenerSHA1FicheroBase64(java.lang.String pathRelativoFichero)
                                          throws java.security.NoSuchAlgorithmException,
                                                 java.io.IOException,
                                                 FicheroYingoException
Obtiene el checkSum SHA1 del fichero en base64

Specified by:
obtenerSHA1FicheroBase64 in interface UtilFichero
Parameters:
pathRelativoFichero -
Returns:
Throws:
java.security.NoSuchAlgorithmException
java.io.IOException
FicheroYingoException
FicheroYingoException

obtenerSHA1Fichero

public java.lang.String obtenerSHA1Fichero(java.lang.String pathRelativo,
                                           java.lang.String nombreFichero)
                                    throws java.security.NoSuchAlgorithmException,
                                           java.io.IOException,
                                           FicheroYingoException
Obtiene el checkSum SHA1 del fichero definido por el path relativo y el nombre del fichero

Specified by:
obtenerSHA1Fichero in interface UtilFichero
Parameters:
pathRelativo -
nombreFichero -
Returns:
Throws:
java.security.NoSuchAlgorithmException
java.io.IOException
FicheroYingoException

obtenerSHA1FicheroBase64

public java.lang.String obtenerSHA1FicheroBase64(java.lang.String pathRelativo,
                                                 java.lang.String nombreFichero)
                                          throws java.security.NoSuchAlgorithmException,
                                                 java.io.IOException,
                                                 FicheroYingoException
Obtiene el checkSum SHA1 del fichero definido por el path relativo y el nombre del fichero

Specified by:
obtenerSHA1FicheroBase64 in interface UtilFichero
Parameters:
pathRelativo -
nombreFichero -
Returns:
Throws:
java.security.NoSuchAlgorithmException
java.io.IOException
FicheroYingoException