Package adalid.commons.properties
Class PropertiesHandler
- java.lang.Object
-
- adalid.commons.properties.PropertiesHandler
-
public class PropertiesHandler extends Object
- Author:
- Jorge Campins
-
-
Constructor Summary
Constructors Constructor Description PropertiesHandler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.commons.collections.ExtendedPropertiesgetBootstrapping()static org.apache.commons.collections.ExtendedPropertiesgetExtendedProperties(byte[] buffer)static org.apache.commons.collections.ExtendedPropertiesgetExtendedProperties(File file)static org.apache.commons.collections.ExtendedPropertiesgetExtendedProperties(File file, org.apache.log4j.Level badFileLogLevel)static org.apache.commons.collections.ExtendedPropertiesgetExtendedProperties(File file, org.apache.log4j.Level badFileLogLevel, org.apache.log4j.Level goodFileLogLevel)static org.apache.commons.collections.ExtendedPropertiesgetExtendedProperties(String filename)static org.apache.commons.collections.ExtendedPropertiesgetExtendedProperties(String... filename)static org.apache.commons.collections.ExtendedPropertiesgetExtendedProperties(String filename, org.apache.log4j.Level badFileLogLevel)static org.apache.commons.collections.ExtendedPropertiesgetExtendedProperties(String filename, org.apache.log4j.Level badFileLogLevel, org.apache.log4j.Level goodFileLogLevel)static File[]getPlatformsFolders()static org.apache.commons.collections.ExtendedPropertiesgetPrivateProperties()static org.apache.commons.collections.ExtendedPropertiesgetResourceAsExtendedProperties(String resource)static org.apache.commons.collections.ExtendedPropertiesgetResourceAsExtendedProperties(String resource, org.apache.log4j.Level badFileLogLevel)static org.apache.commons.collections.ExtendedPropertiesgetResourceAsExtendedProperties(String resource, org.apache.log4j.Level badFileLogLevel, org.apache.log4j.Level goodFileLogLevel)static PropertiesgetResourceAsProperties(String resource)static PropertiesgetResourceAsProperties(String resource, org.apache.log4j.Level badFileLogLevel)static PropertiesgetResourceAsProperties(String resource, org.apache.log4j.Level badFileLogLevel, org.apache.log4j.Level goodFileLogLevel)static FilegetRootFolder()static File[]getVelocityFolders()static PropertiesgetVelocityProperties()static FilegetVelocityPropertiesFile()static PropertiesgetVelocitySupplementaryProperties()static FilegetVelocitySupplementaryPropertiesFile()static PropertiesloadProperties(byte[] buffer)static PropertiesloadProperties(byte[] buffer, boolean sortedKeys)static PropertiesloadProperties(File file)static PropertiesloadProperties(File file, boolean sortedKeys)static PropertiesloadProperties(File file, boolean sortedKeys, org.apache.log4j.Level badFileLogLevel)static PropertiesloadProperties(String filename)static PropertiesloadProperties(String filename, boolean sortedKeys)static PropertiesloadProperties(String filename, boolean sortedKeys, org.apache.log4j.Level badFileLogLevel)static PropertiesloadProperties(ResourceBundle bundle)static PropertiesloadProperties(ResourceBundle bundle, boolean sortedKeys)static booleanmissingBootstrappingProperties()static voidprintExtendedProperties(org.apache.commons.collections.ExtendedProperties extendedProperties)static voidprintProperties(Properties properties)static voidstoreProperties(Properties properties, File file)static voidstoreProperties(Properties properties, File file, String comments)static voidstoreProperties(Properties properties, File file, String comments, String lineSeparator)static voidstoreProperties(Properties properties, String filename)static voidstoreProperties(Properties properties, String filename, String comments)static voidstoreProperties(Properties properties, String filename, String comments, String lineSeparator)
-
-
-
Method Detail
-
missingBootstrappingProperties
public static boolean missingBootstrappingProperties()
-
getPrivateProperties
public static org.apache.commons.collections.ExtendedProperties getPrivateProperties()
-
getResourceAsProperties
public static Properties getResourceAsProperties(String resource)
-
getResourceAsProperties
public static Properties getResourceAsProperties(String resource, org.apache.log4j.Level badFileLogLevel)
-
getResourceAsProperties
public static Properties getResourceAsProperties(String resource, org.apache.log4j.Level badFileLogLevel, org.apache.log4j.Level goodFileLogLevel)
-
getResourceAsExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getResourceAsExtendedProperties(String resource)
-
getResourceAsExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getResourceAsExtendedProperties(String resource, org.apache.log4j.Level badFileLogLevel)
-
getResourceAsExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getResourceAsExtendedProperties(String resource, org.apache.log4j.Level badFileLogLevel, org.apache.log4j.Level goodFileLogLevel)
-
getBootstrapping
public static org.apache.commons.collections.ExtendedProperties getBootstrapping()
- Returns:
- the bootstrapping properties
-
getVelocityProperties
public static Properties getVelocityProperties()
-
getVelocitySupplementaryProperties
public static Properties getVelocitySupplementaryProperties()
-
loadProperties
public static Properties loadProperties(String filename)
-
loadProperties
public static Properties loadProperties(String filename, boolean sortedKeys)
-
loadProperties
public static Properties loadProperties(String filename, boolean sortedKeys, org.apache.log4j.Level badFileLogLevel)
-
loadProperties
public static Properties loadProperties(File file)
-
loadProperties
public static Properties loadProperties(File file, boolean sortedKeys)
-
loadProperties
public static Properties loadProperties(File file, boolean sortedKeys, org.apache.log4j.Level badFileLogLevel)
-
loadProperties
public static Properties loadProperties(byte[] buffer)
-
loadProperties
public static Properties loadProperties(byte[] buffer, boolean sortedKeys)
-
loadProperties
public static Properties loadProperties(ResourceBundle bundle)
-
loadProperties
public static Properties loadProperties(ResourceBundle bundle, boolean sortedKeys)
-
storeProperties
public static void storeProperties(Properties properties, String filename)
-
storeProperties
public static void storeProperties(Properties properties, String filename, String comments)
-
storeProperties
public static void storeProperties(Properties properties, String filename, String comments, String lineSeparator)
-
storeProperties
public static void storeProperties(Properties properties, File file)
-
storeProperties
public static void storeProperties(Properties properties, File file, String comments)
-
storeProperties
public static void storeProperties(Properties properties, File file, String comments, String lineSeparator)
-
printProperties
public static void printProperties(Properties properties)
-
getExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getExtendedProperties(String filename)
-
getExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getExtendedProperties(String... filename)
-
getExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getExtendedProperties(String filename, org.apache.log4j.Level badFileLogLevel)
-
getExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getExtendedProperties(String filename, org.apache.log4j.Level badFileLogLevel, org.apache.log4j.Level goodFileLogLevel)
-
getExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getExtendedProperties(File file)
-
getExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getExtendedProperties(File file, org.apache.log4j.Level badFileLogLevel)
-
getExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getExtendedProperties(File file, org.apache.log4j.Level badFileLogLevel, org.apache.log4j.Level goodFileLogLevel)
-
getExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getExtendedProperties(byte[] buffer)
-
printExtendedProperties
public static void printExtendedProperties(org.apache.commons.collections.ExtendedProperties extendedProperties)
-
getRootFolder
public static File getRootFolder()
-
getVelocityFolders
public static File[] getVelocityFolders()
-
getVelocityPropertiesFile
public static File getVelocityPropertiesFile()
-
getVelocitySupplementaryPropertiesFile
public static File getVelocitySupplementaryPropertiesFile()
-
getPlatformsFolders
public static File[] getPlatformsFolders()
-
-