Package com.thed.util
Class Utils
java.lang.Object
com.thed.util.Utils
- Author:
- zephyrDev
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final String
convertStringToDate
(String aMask, Date date2) static FileInputStream
getFileAsStream
(String resourceName) static File
getLoadedJarFile
(String resourceName) static String
static org.apache.commons.configuration.PropertiesConfiguration
static org.apache.commons.configuration.PropertiesConfiguration
getZbotProperties
(Boolean reload) static String
static boolean
isEncrypted
(String password) checks if all the chars are *static long
lastModifiedTimeOfMonitorFile
(String filename) Description: Returns last modified time of given file.
-
Field Details
-
ENC_PWD_KEY
- See Also:
-
PASSWORD_KEY
- See Also:
-
USERNAME_KEY
- See Also:
-
URL_CONTEXT_FRAGMENT_KEY
- See Also:
-
DESKTOP_ALERT_ENABLED
- See Also:
-
APITOKEN_KEY
- See Also:
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
getZbotProperties
-
getZbotProperties
public static org.apache.commons.configuration.PropertiesConfiguration getZbotProperties(Boolean reload) -
getZBotPropertiesFile
- Throws:
URISyntaxException
-
getLogPropertiesFile
- Throws:
URISyntaxException
-
getLoadedJarFile
- Throws:
URISyntaxException
-
getFileAsStream
-
lastModifiedTimeOfMonitorFile
Description: Returns last modified time of given file.- Parameters:
filename
-- Returns:
-
isEncrypted
checks if all the chars are *- Parameters:
password
-- Returns:
-
convertStringToDate
- Throws:
ParseException
-
getSet
-
partition
-