Package adalid.commons.properties
Class PropertiesHandler
- java.lang.Object
-
- adalid.commons.properties.PropertiesHandler
-
public class PropertiesHandler extends java.lang.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(java.io.File file)static org.apache.commons.collections.ExtendedPropertiesgetExtendedProperties(java.io.File file, org.apache.log4j.Level badFileLogLevel)static org.apache.commons.collections.ExtendedPropertiesgetExtendedProperties(java.io.File file, org.apache.log4j.Level badFileLogLevel, org.apache.log4j.Level goodFileLogLevel)static org.apache.commons.collections.ExtendedPropertiesgetExtendedProperties(java.lang.String filename)static org.apache.commons.collections.ExtendedPropertiesgetExtendedProperties(java.lang.String... filename)static org.apache.commons.collections.ExtendedPropertiesgetExtendedProperties(java.lang.String filename, org.apache.log4j.Level badFileLogLevel)static org.apache.commons.collections.ExtendedPropertiesgetExtendedProperties(java.lang.String filename, org.apache.log4j.Level badFileLogLevel, org.apache.log4j.Level goodFileLogLevel)static java.io.File[]getPlatformsFolders()static java.nio.charset.CharsetgetPreferredFileEncoding()static org.apache.commons.collections.ExtendedPropertiesgetPrivateProperties()static org.apache.commons.collections.ExtendedPropertiesgetResourceAsExtendedProperties(java.lang.String resource)static org.apache.commons.collections.ExtendedPropertiesgetResourceAsExtendedProperties(java.lang.String resource, org.apache.log4j.Level badFileLogLevel)static org.apache.commons.collections.ExtendedPropertiesgetResourceAsExtendedProperties(java.lang.String resource, org.apache.log4j.Level badFileLogLevel, org.apache.log4j.Level goodFileLogLevel)static java.util.PropertiesgetResourceAsProperties(java.lang.String resource)static java.util.PropertiesgetResourceAsProperties(java.lang.String resource, org.apache.log4j.Level badFileLogLevel)static java.util.PropertiesgetResourceAsProperties(java.lang.String resource, org.apache.log4j.Level badFileLogLevel, org.apache.log4j.Level goodFileLogLevel)static java.util.Set<java.lang.String>getResourceBundleKeys(java.lang.String baseName, java.util.Locale locale)static java.util.List<java.lang.String>getResourceBundleRows(java.lang.String baseName, java.util.Locale locale)static java.io.FilegetRootFolder()static java.io.File[]getVelocityFolders()static java.util.PropertiesgetVelocityProperties()static java.io.FilegetVelocityPropertiesFile()static java.util.PropertiesgetVelocitySupplementaryProperties()static java.io.FilegetVelocitySupplementaryPropertiesFile()static java.util.PropertiesloadProperties(byte[] buffer)static java.util.PropertiesloadProperties(byte[] buffer, boolean sortedKeys)static java.util.PropertiesloadProperties(java.io.File file)static java.util.PropertiesloadProperties(java.io.File file, boolean sortedKeys)static java.util.PropertiesloadProperties(java.io.File file, boolean sortedKeys, org.apache.log4j.Level badFileLogLevel)static java.util.PropertiesloadProperties(java.lang.String filename)static java.util.PropertiesloadProperties(java.lang.String filename, boolean sortedKeys)static java.util.PropertiesloadProperties(java.lang.String filename, boolean sortedKeys, org.apache.log4j.Level badFileLogLevel)static java.util.PropertiesloadProperties(java.util.ResourceBundle bundle)static java.util.PropertiesloadProperties(java.util.ResourceBundle bundle, boolean sortedKeys)static booleanmissingBootstrappingProperties()static voidprintExtendedProperties(org.apache.commons.collections.ExtendedProperties extendedProperties)static voidprintProperties(java.util.Properties properties)static voidstoreProperties(java.util.Properties properties, java.io.File file)static voidstoreProperties(java.util.Properties properties, java.io.File file, java.lang.String comments)static voidstoreProperties(java.util.Properties properties, java.io.File file, java.lang.String comments, java.lang.String lineSeparator)static voidstoreProperties(java.util.Properties properties, java.lang.String filename)static voidstoreProperties(java.util.Properties properties, java.lang.String filename, java.lang.String comments)static voidstoreProperties(java.util.Properties properties, java.lang.String filename, java.lang.String comments, java.lang.String lineSeparator)
-
-
-
Method Detail
-
missingBootstrappingProperties
public static boolean missingBootstrappingProperties()
-
getPrivateProperties
public static org.apache.commons.collections.ExtendedProperties getPrivateProperties()
-
getResourceAsProperties
public static java.util.Properties getResourceAsProperties(java.lang.String resource)
-
getResourceAsProperties
public static java.util.Properties getResourceAsProperties(java.lang.String resource, org.apache.log4j.Level badFileLogLevel)
-
getResourceAsProperties
public static java.util.Properties getResourceAsProperties(java.lang.String resource, org.apache.log4j.Level badFileLogLevel, org.apache.log4j.Level goodFileLogLevel)
-
getResourceAsExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getResourceAsExtendedProperties(java.lang.String resource)
-
getResourceAsExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getResourceAsExtendedProperties(java.lang.String resource, org.apache.log4j.Level badFileLogLevel)
-
getResourceAsExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getResourceAsExtendedProperties(java.lang.String resource, org.apache.log4j.Level badFileLogLevel, org.apache.log4j.Level goodFileLogLevel)
-
getResourceBundleKeys
public static java.util.Set<java.lang.String> getResourceBundleKeys(java.lang.String baseName, java.util.Locale locale)
-
getResourceBundleRows
public static java.util.List<java.lang.String> getResourceBundleRows(java.lang.String baseName, java.util.Locale locale)
-
getBootstrapping
public static org.apache.commons.collections.ExtendedProperties getBootstrapping()
- Returns:
- the bootstrapping properties
-
getVelocityProperties
public static java.util.Properties getVelocityProperties()
-
getVelocitySupplementaryProperties
public static java.util.Properties getVelocitySupplementaryProperties()
-
loadProperties
public static java.util.Properties loadProperties(java.lang.String filename)
-
loadProperties
public static java.util.Properties loadProperties(java.lang.String filename, boolean sortedKeys)
-
loadProperties
public static java.util.Properties loadProperties(java.lang.String filename, boolean sortedKeys, org.apache.log4j.Level badFileLogLevel)
-
loadProperties
public static java.util.Properties loadProperties(java.io.File file)
-
loadProperties
public static java.util.Properties loadProperties(java.io.File file, boolean sortedKeys)
-
loadProperties
public static java.util.Properties loadProperties(java.io.File file, boolean sortedKeys, org.apache.log4j.Level badFileLogLevel)
-
loadProperties
public static java.util.Properties loadProperties(byte[] buffer)
-
loadProperties
public static java.util.Properties loadProperties(byte[] buffer, boolean sortedKeys)
-
loadProperties
public static java.util.Properties loadProperties(java.util.ResourceBundle bundle)
-
loadProperties
public static java.util.Properties loadProperties(java.util.ResourceBundle bundle, boolean sortedKeys)
-
storeProperties
public static void storeProperties(java.util.Properties properties, java.lang.String filename)
-
storeProperties
public static void storeProperties(java.util.Properties properties, java.lang.String filename, java.lang.String comments)
-
storeProperties
public static void storeProperties(java.util.Properties properties, java.lang.String filename, java.lang.String comments, java.lang.String lineSeparator)
-
storeProperties
public static void storeProperties(java.util.Properties properties, java.io.File file)
-
storeProperties
public static void storeProperties(java.util.Properties properties, java.io.File file, java.lang.String comments)
-
storeProperties
public static void storeProperties(java.util.Properties properties, java.io.File file, java.lang.String comments, java.lang.String lineSeparator)
-
printProperties
public static void printProperties(java.util.Properties properties)
-
getExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getExtendedProperties(java.lang.String filename)
-
getExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getExtendedProperties(java.lang.String... filename)
-
getExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getExtendedProperties(java.lang.String filename, org.apache.log4j.Level badFileLogLevel)
-
getExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getExtendedProperties(java.lang.String filename, org.apache.log4j.Level badFileLogLevel, org.apache.log4j.Level goodFileLogLevel)
-
getExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getExtendedProperties(java.io.File file)
-
getExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getExtendedProperties(java.io.File file, org.apache.log4j.Level badFileLogLevel)
-
getExtendedProperties
public static org.apache.commons.collections.ExtendedProperties getExtendedProperties(java.io.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)
-
getPreferredFileEncoding
public static java.nio.charset.Charset getPreferredFileEncoding()
-
getRootFolder
public static java.io.File getRootFolder()
-
getVelocityFolders
public static java.io.File[] getVelocityFolders()
-
getVelocityPropertiesFile
public static java.io.File getVelocityPropertiesFile()
-
getVelocitySupplementaryPropertiesFile
public static java.io.File getVelocitySupplementaryPropertiesFile()
-
getPlatformsFolders
public static java.io.File[] getPlatformsFolders()
-
-