public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static ArrayList<String> |
getKeysOfAppender(File srcFile,
String appenderName)
Util method to return the list of keys for a given appender.
|
static Map<String,String> |
getKeyValuesOfAppender(File srcFile,
String appenderName) |
static String |
getProperty(File srcFile,
String key)
Util method to return the specified property from a properties file.
|
public static String getProperty(File srcFile, String key) throws IOException
srcFile
- - The source file which needs to be looked up.key
- - Key of the property.IOException
public static ArrayList<String> getKeysOfAppender(File srcFile, String appenderName) throws IOException
srcFile
- - The source file which needs to be looked up.appenderName
- - Name of the appender.IOException
- - Error occurred while reading the input stream.public static Map<String,String> getKeyValuesOfAppender(File srcFile, String appenderName) throws IOException
IOException
Copyright © 2024 WSO2. All rights reserved.