public class I18nJavaUtil extends Object
| Constructor and Description |
|---|
I18nJavaUtil() |
| Modifier and Type | Method and Description |
|---|---|
static long |
dirLastModified(File dir,
boolean includeSubDirs)
Given a file (possibly a directory) return the last mod of the file or any recursive children files
If includeSubDirs is false then only look in this directory itself, not recursive ones
|
static long |
dirLastModified(File dir,
boolean includeSubDirs,
boolean checkDirectoryTimestampAsWell)
Given a file (possibly a directory) return the last mod of the file or any recursive children files
If includeSubDirs is false then only look in this directory itself, not recursive ones.
|
static File |
getCacheBaseDir() |
static File |
getFile(URL url) |
static Level |
getLogLevel() |
static String |
getProperty(String key) |
static boolean |
isDebugging() |
static void |
setCacheBaseDir(File cacheDir)
Set the base directory of where the cache may be stored.
|
static void |
setLogLevel(Level level)
Set the log level to use for internal operations.
|
static long |
urlDirLastModified(URL url,
boolean includeSubDirs,
boolean checkDirectoryTimestampAsWell) |
static long |
urlLastModified(URL url) |
public static Level getLogLevel()
public static void setLogLevel(Level level)
level - the level to setpublic static boolean isDebugging()
public static long dirLastModified(File dir, boolean includeSubDirs)
public static long dirLastModified(File dir, boolean includeSubDirs, boolean checkDirectoryTimestampAsWell)
checkDirectoryTimestampAsWell - checks the directory's modification time itself.public static final String getProperty(String key)
key - the java-style property that is being loadedpublic static File getFile(URL url) throws URISyntaxException, IOException
URISyntaxExceptionIOExceptionpublic static long urlLastModified(URL url) throws URISyntaxException, IOException
URISyntaxExceptionIOExceptionpublic static long urlDirLastModified(URL url, boolean includeSubDirs, boolean checkDirectoryTimestampAsWell) throws URISyntaxException, IOException
URISyntaxExceptionIOExceptionpublic static File getCacheBaseDir()
public static void setCacheBaseDir(File cacheDir)
Copyright (c) 2016-2017, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE.txt file in the repository.