Package org.eclnt.util.file
Class PropertiesFileManager
java.lang.Object
org.eclnt.util.file.PropertiesFileManager
Util functions for reading and writing property files.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addPropertiesToFile
(String fileName, List<PropertiesFileManager.PropertyValue> propertyValues, boolean overwriteExisting, boolean asUTF8, boolean withError) static String
parsePropertiesContent
(String content, boolean asUTF8) readPropertiesFromFile
(String fileName, boolean asUTF8, boolean withError) readPropertiesFromResource
(String resourcePath, boolean asUTF8, boolean withError) static void
savePropertiesInFile
(String fileName, List<PropertiesFileManager.PropertyValue> propertyValues, boolean asUTF8, boolean withError) static String
-
Constructor Details
-
PropertiesFileManager
public PropertiesFileManager()
-
-
Method Details
-
addPropertiesToFile
public static void addPropertiesToFile(String fileName, List<PropertiesFileManager.PropertyValue> propertyValues, boolean overwriteExisting, boolean asUTF8, boolean withError) -
savePropertiesInFile
public static void savePropertiesInFile(String fileName, List<PropertiesFileManager.PropertyValue> propertyValues, boolean asUTF8, boolean withError) -
readPropertiesFromFile
public static List<PropertiesFileManager.PropertyValue> readPropertiesFromFile(String fileName, boolean asUTF8, boolean withError) -
readPropertiesFromResource
public static List<PropertiesFileManager.PropertyValue> readPropertiesFromResource(String resourcePath, boolean asUTF8, boolean withError) -
parsePropertiesContent
public static List<PropertiesFileManager.PropertyValue> parsePropertiesContent(String content, boolean asUTF8) -
escapeString
-
unescapeString
-