jodd.io.FileUtil.checkFileCopy()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(142)

本文整理了Java中jodd.io.FileUtil.checkFileCopy()方法的一些代码示例,展示了FileUtil.checkFileCopy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtil.checkFileCopy()方法的具体详情如下:
包路径:jodd.io.FileUtil
类名称:FileUtil
方法名:checkFileCopy

FileUtil.checkFileCopy介绍

[英]Checks that file copy can occur.
[中]检查是否可以进行文件复制。

代码示例

代码示例来源:origin: redisson/redisson

/**
 * Copies a file to another file with specified {@link FileUtilParams copy params}.
 */
public static void copyFile(File src, File dest, FileUtilParams params) throws IOException {
  checkFileCopy(src, dest, params);
  doCopyFile(src, dest, params);
}

代码示例来源:origin: redisson/redisson

public static File moveFile(File src, File dest, FileUtilParams params) throws IOException {
  checkFileCopy(src, dest, params);
  doMoveFile(src, dest, params);
  return dest;
}

代码示例来源:origin: oblac/jodd

/**
 * Copies a {@link File} to another {@link File}.
 *
 * @param srcFile  Source {@link File}.
 * @param destFile Destination {@link File}.
 * @throws IOException if cannot copy
 */
public static void copyFile(final File srcFile, final File destFile) throws IOException {
  checkFileCopy(srcFile, destFile);
  _copyFile(srcFile, destFile);
}

代码示例来源:origin: oblac/jodd

/**
 * @see #_moveFile(File, File)
 */
public static File moveFile(final File srcFile, final File destFile) throws IOException {
  checkFileCopy(srcFile, destFile);
  _moveFile(srcFile, destFile);
  return destFile;
}

代码示例来源:origin: org.jodd/jodd-core

/**
 * Copies a {@link File} to another {@link File}.
 *
 * @param srcFile  Source {@link File}.
 * @param destFile Destination {@link File}.
 * @throws IOException if cannot copy
 */
public static void copyFile(final File srcFile, final File destFile) throws IOException {
  checkFileCopy(srcFile, destFile);
  _copyFile(srcFile, destFile);
}

代码示例来源:origin: org.jodd/jodd-core

/**
 * @see #_moveFile(File, File)
 */
public static File moveFile(final File srcFile, final File destFile) throws IOException {
  checkFileCopy(srcFile, destFile);
  _moveFile(srcFile, destFile);
  return destFile;
}

相关文章