public class PropertiesNormalizer extends Object
| Modifier and Type | Field and Description |
|---|---|
static Map<Character,String> |
INVALID_CHARACTERS
The invalid characters.
|
| Constructor and Description |
|---|
PropertiesNormalizer() |
| Modifier and Type | Method and Description |
|---|---|
static Collection<File> |
findPropertiesFilesWithInvalidCharacters(File rootDir)
Finds properties files that contains invalid characters and adds them to the collection from
the given directory recursively.
|
static void |
normalizeProperties(String path)
Replaces all occurrences from invalid characters with utf8 characters for the given path from
the properties file and creates a backup file for comparisons if necessary.
|
public static Collection<File> findPropertiesFilesWithInvalidCharacters(File rootDir) throws IOException
rootDir - the root directory that shall be search for all properties files.IOException - Signals that an I/O exception has occurred.public static void normalizeProperties(String path) throws IOException, de.alpharogroup.file.exceptions.FileIsADirectoryException
path - the path from the properties fileIOException - Signals that an I/O exception has occurred.de.alpharogroup.file.exceptions.FileIsADirectoryException - is thrown if the given path is a directory.Copyright © 2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.