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

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

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

IO.copyDir介绍

暂无

代码示例

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

  1. @Override
  2. public void copyTo(File destination) throws IOException
  3. {
  4. if (isDirectory())
  5. {
  6. IO.copyDir(this.path.toFile(),destination);
  7. }
  8. else
  9. {
  10. Files.copy(this.path,destination.toPath());
  11. }
  12. }

代码示例来源: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: org.eclipse.jetty/jetty-util

  1. @Override
  2. public void copyTo(File destination)
  3. throws IOException
  4. {
  5. if (isDirectory())
  6. {
  7. IO.copyDir(getFile(),destination);
  8. }
  9. else
  10. {
  11. if (destination.exists())
  12. throw new IllegalArgumentException(destination+" exists");
  13. IO.copy(getFile(),destination);
  14. }
  15. }

代码示例来源: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: 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-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: 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: 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-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: 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. }

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

  1. @Override
  2. public void copyTo(File destination) throws IOException
  3. {
  4. if (isDirectory())
  5. {
  6. IO.copyDir(this.path.toFile(),destination);
  7. }
  8. else
  9. {
  10. Files.copy(this.path,destination.toPath());
  11. }
  12. }

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

  1. @Override
  2. public void copyTo(File destination)
  3. throws IOException
  4. {
  5. if (isDirectory())
  6. {
  7. IO.copyDir(getFile(),destination);
  8. }
  9. else
  10. {
  11. if (destination.exists())
  12. throw new IllegalArgumentException(destination+" exists");
  13. IO.copy(getFile(),destination);
  14. }
  15. }
  16. }

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

  1. @Override
  2. public void copyTo(File destination)
  3. throws IOException
  4. {
  5. if (isDirectory())
  6. {
  7. IO.copyDir(getFile(),destination);
  8. }
  9. else
  10. {
  11. if (destination.exists())
  12. throw new IllegalArgumentException(destination+" exists");
  13. IO.copy(getFile(),destination);
  14. }
  15. }

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

  1. @Override
  2. public void copyTo(File destination)
  3. throws IOException
  4. {
  5. if (isDirectory())
  6. {
  7. IO.copyDir(getFile(),destination);
  8. }
  9. else
  10. {
  11. if (destination.exists())
  12. throw new IllegalArgumentException(destination+" exists");
  13. IO.copy(getFile(),destination);
  14. }
  15. }
  16. }

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

  1. @Override
  2. public void copyTo(File destination)
  3. throws IOException
  4. {
  5. if (isDirectory())
  6. {
  7. IO.copyDir(getFile(),destination);
  8. }
  9. else
  10. {
  11. if (destination.exists())
  12. throw new IllegalArgumentException(destination+" exists");
  13. IO.copy(getFile(),destination);
  14. }
  15. }

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

  1. @Override
  2. public void copyTo(File destination)
  3. throws IOException
  4. {
  5. if (isDirectory())
  6. {
  7. IO.copyDir(getFile(),destination);
  8. }
  9. else
  10. {
  11. if (destination.exists())
  12. throw new IllegalArgumentException(destination+" exists");
  13. IO.copy(getFile(),destination);
  14. }
  15. }
  16. }

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

  1. @Override
  2. public void copyTo(File destination)
  3. throws IOException
  4. {
  5. if (isDirectory())
  6. {
  7. IO.copyDir(getFile(),destination);
  8. }
  9. else
  10. {
  11. if (destination.exists())
  12. throw new IllegalArgumentException(destination+" exists");
  13. IO.copy(getFile(),destination);
  14. }
  15. }
  16. }

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

  1. @Override
  2. public void copyTo(File destination)
  3. throws IOException
  4. {
  5. if (isDirectory())
  6. {
  7. IO.copyDir(getFile(),destination);
  8. }
  9. else
  10. {
  11. if (destination.exists())
  12. throw new IllegalArgumentException(destination+" exists");
  13. IO.copy(getFile(),destination);
  14. }
  15. }
  16. }

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

  1. @Override
  2. public void copyTo(File destination)
  3. throws IOException
  4. {
  5. if (isDirectory())
  6. {
  7. IO.copyDir(getFile(),destination);
  8. }
  9. else
  10. {
  11. if (destination.exists())
  12. throw new IllegalArgumentException(destination+" exists");
  13. IO.copy(getFile(),destination);
  14. }
  15. }
  16. }

相关文章