Package adalid.commons.properties
Class PropertiesHandler
java.lang.Object
adalid.commons.properties.PropertiesHandler
- Author:
- Jorge Campins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.commons.collections.ExtendedPropertiesstatic 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[]static Charsetstatic org.apache.commons.collections.ExtendedPropertiesstatic 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) getResourceBundleKeys(String baseName, Locale locale) getResourceBundleRows(String baseName, Locale locale) static Filestatic File[]static Propertiesstatic Filestatic Propertiesstatic Filestatic 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 booleanstatic 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)
-
Constructor Details
-
PropertiesHandler
public PropertiesHandler()
-
-
Method Details
-
missingBootstrappingProperties
public static boolean missingBootstrappingProperties() -
getPrivateProperties
public static org.apache.commons.collections.ExtendedProperties getPrivateProperties() -
getResourceAsProperties
-
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) -
getResourceBundleKeys
-
getResourceBundleRows
-
getBootstrapping
public static org.apache.commons.collections.ExtendedProperties getBootstrapping()- Returns:
- the bootstrapping properties
-
getVelocityProperties
-
getVelocitySupplementaryProperties
-
loadProperties
-
loadProperties
-
loadProperties
public static Properties loadProperties(String filename, boolean sortedKeys, org.apache.log4j.Level badFileLogLevel) -
loadProperties
-
loadProperties
-
loadProperties
public static Properties loadProperties(File file, boolean sortedKeys, org.apache.log4j.Level badFileLogLevel) -
loadProperties
-
loadProperties
-
loadProperties
-
loadProperties
-
storeProperties
-
storeProperties
-
storeProperties
public static void storeProperties(Properties properties, String filename, String comments, String lineSeparator) -
storeProperties
-
storeProperties
-
storeProperties
public static void storeProperties(Properties properties, File file, String comments, String lineSeparator) -
printProperties
-
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
-
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) -
getPreferredFileEncoding
-
getRootFolder
-
getVelocityFolders
-
getVelocityPropertiesFile
-
getVelocitySupplementaryPropertiesFile
-
getPlatformsFolders
-