public class PropertiesUtils extends Object
| Constructor and Description |
|---|
PropertiesUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Properties |
filterEmtpyValues(Properties props) |
static Properties[] |
load(File... files)
Loades properties from given files
|
static Properties |
load(File file)
Loads properties by given file
|
static Properties[] |
load(String... files)
Loades properties from given files
|
static Properties |
load(String file)
Loads properties by given file
|
static Properties[] |
loadAllFromDirectory(File dir)
Loads non-recursively all .property files form directory
|
static Properties[] |
loadAllFromDirectory(File dir,
boolean recursive)
Loads all .property files form directory
|
static Properties[] |
loadAllFromDirectory(String dir)
Loads non-recursively all .property files form directory
|
static Properties[] |
loadAllFromDirectory(String dir,
boolean recursive)
Loads all .property files form directory
|
public static Properties load(String file) throws IOException
file - filenameIOException - if can't load filepublic static Properties load(File file) throws IOException
file - filenameIOException - if can't load filepublic static Properties[] load(String... files) throws IOException
files - list of string that represents filesIOException - if was unable to read propertiespublic static Properties[] load(File... files) throws IOException
files - list of filesIOException - if was unable to read propertiespublic static Properties[] loadAllFromDirectory(String dir) throws IOException
dir - string that represents directoryIOException - if was unable to read propertiespublic static Properties[] loadAllFromDirectory(File dir) throws IOException
dir - directoryIOException - if was unable to read propertiespublic static Properties[] loadAllFromDirectory(String dir, boolean recursive) throws IOException
dir - string that represents directoryrecursive - parse subdirectories or notIOException - if was unable to read propertiespublic static Properties[] loadAllFromDirectory(File dir, boolean recursive) throws IOException
dir - directoryrecursive - parse subdirectories or notIOException - if was unable to read propertiespublic static Properties filterEmtpyValues(Properties props)
Copyright © 2014–2015. All rights reserved.