es.caib.ibkey.bpm.common
Class PropertiesFileUtil

java.lang.Object
  extended by es.caib.ibkey.bpm.common.PropertiesFileUtil

public class PropertiesFileUtil
extends java.lang.Object

Clase con utileria para el tratamiento de ficheros de configuraci�n .properties. El fichero cargado que se desea cargar se puede establecer en el constructor, si no se establece se carga uno por defecto (esources/config.properties).

Author:
u93387

Constructor Summary
PropertiesFileUtil()
          Carga el fichero de configuraci�n por defecto
PropertiesFileUtil(java.io.InputStream input)
          Carga el fichero de configuraci�n que le llega
PropertiesFileUtil(java.lang.String nameFile)
          Carga el fichero de configuraci�n indicado
 
Method Summary
 java.lang.String getProperty(java.lang.String key)
          Recupera el valor de una entrada en el fichero a partir de la clave pasada por par�metro
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesFileUtil

public PropertiesFileUtil()
                   throws java.io.IOException
Carga el fichero de configuraci�n por defecto

Throws:
java.io.IOException

PropertiesFileUtil

public PropertiesFileUtil(java.lang.String nameFile)
                   throws java.io.IOException
Carga el fichero de configuraci�n indicado

Throws:
java.io.IOException

PropertiesFileUtil

public PropertiesFileUtil(java.io.InputStream input)
                   throws java.io.IOException
Carga el fichero de configuraci�n que le llega

Throws:
java.io.IOException
Method Detail

getProperty

public java.lang.String getProperty(java.lang.String key)
                             throws PropertyNotFoundException
Recupera el valor de una entrada en el fichero a partir de la clave pasada por par�metro

Parameters:
key -
Returns:
Throws:
PropertyNotFoundException


Copyright © 2012 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.