org.eclipse.jetty.util.IO.copyFile()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(171)

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

IO.copyFile介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.jetty/jetty-util

  1. /** Copy files or directories
  2. * @param from the file to copy
  3. * @param to the destination to copy to
  4. * @throws IOException if unable to copy
  5. */
  6. public static void copy(File from,File to) throws IOException
  7. {
  8. if (from.isDirectory())
  9. copyDir(from,to);
  10. else
  11. copyFile(from,to);
  12. }

代码示例来源:origin: Nextdoor/bender

  1. /** Copy files or directories
  2. * @param from
  3. * @param to
  4. * @throws IOException
  5. */
  6. public static void copy(File from,File to) throws IOException
  7. {
  8. if (from.isDirectory())
  9. copyDir(from,to);
  10. else
  11. copyFile(from,to);
  12. }

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

  1. /** Copy files or directories
  2. * @param from
  3. * @param to
  4. * @throws IOException
  5. */
  6. public static void copy(File from,File to) throws IOException
  7. {
  8. if (from.isDirectory())
  9. copyDir(from,to);
  10. else
  11. copyFile(from,to);
  12. }

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

  1. /** Copy files or directories
  2. * @param from
  3. * @param to
  4. * @throws IOException
  5. */
  6. public static void copy(File from,File to) throws IOException
  7. {
  8. if (from.isDirectory())
  9. copyDir(from,to);
  10. else
  11. copyFile(from,to);
  12. }

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

  1. /** Copy files or directories
  2. * @param from
  3. * @param to
  4. * @throws IOException
  5. */
  6. public static void copy(File from,File to) throws IOException
  7. {
  8. if (from.isDirectory())
  9. copyDir(from,to);
  10. else
  11. copyFile(from,to);
  12. }

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

  1. /** Copy files or directories
  2. * @param from
  3. * @param to
  4. * @throws IOException
  5. */
  6. public static void copy(File from,File to) throws IOException
  7. {
  8. if (from.isDirectory())
  9. copyDir(from,to);
  10. else
  11. copyFile(from,to);
  12. }

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

  1. /** Copy files or directories
  2. * @param from
  3. * @param to
  4. * @throws IOException
  5. */
  6. public static void copy(File from,File to) throws IOException
  7. {
  8. if (from.isDirectory())
  9. copyDir(from,to);
  10. else
  11. copyFile(from,to);
  12. }

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

  1. /** Copy files or directories
  2. * @param from
  3. * @param to
  4. * @throws IOException
  5. */
  6. public static void copy(File from,File to) throws IOException
  7. {
  8. if (from.isDirectory())
  9. copyDir(from,to);
  10. else
  11. copyFile(from,to);
  12. }

代码示例来源:origin: jenkinsci/winstone

  1. /** Copy files or directories
  2. * @param from the file to copy
  3. * @param to the destination to copy to
  4. * @throws IOException if unable to copy
  5. */
  6. public static void copy(File from,File to) throws IOException
  7. {
  8. if (from.isDirectory())
  9. copyDir(from,to);
  10. else
  11. copyFile(from,to);
  12. }

相关文章