本文整理了Java中jodd.io.FileUtil.checkReferenceExists()
方法的一些代码示例,展示了FileUtil.checkReferenceExists()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtil.checkReferenceExists()
方法的具体详情如下:
包路径:jodd.io.FileUtil
类名称:FileUtil
方法名:checkReferenceExists
[英]Checks if File exists. Throws IllegalArgumentException if not.
[中]检查文件是否存在。如果不是,则抛出IllegalArgumentException。
代码示例来源:origin: oblac/jodd
/**
* Uses {@link File#lastModified()} for reference.
*
* @see #isNewer(File, long)
*/
public static boolean isNewer(final File file, final File reference) {
checkReferenceExists(reference);
return isNewer(file, reference.lastModified());
}
代码示例来源:origin: oblac/jodd
/**
* Uses {@link File#lastModified()} for reference.
*
* @see #isOlder(File, long)
*/
public static boolean isOlder(final File file, final File reference) {
checkReferenceExists(reference);
return isOlder(file, reference.lastModified());
}
代码示例来源:origin: org.jodd/jodd-core
/**
* Uses {@link File#lastModified()} for reference.
*
* @see #isOlder(File, long)
*/
public static boolean isOlder(final File file, final File reference) {
checkReferenceExists(reference);
return isOlder(file, reference.lastModified());
}
代码示例来源:origin: org.jodd/jodd-core
/**
* Uses {@link File#lastModified()} for reference.
*
* @see #isNewer(File, long)
*/
public static boolean isNewer(final File file, final File reference) {
checkReferenceExists(reference);
return isNewer(file, reference.lastModified());
}
内容来源于网络,如有侵权,请联系作者删除!