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 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.IOExceptionpublic 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.Copyright © 2023 WSO2. All rights reserved.