Mercurial Hosting > luan
annotate src/goodjava/io/IoUtils.java @ 1474:13cbce740e1e
LowercaseAnalyzer
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Fri, 17 Apr 2020 21:53:09 -0600 |
| parents | 6c6ce14db6a8 |
| children | c7b86342857f |
| rev | line source |
|---|---|
| 1473 | 1 package goodjava.io; |
| 2 | |
| 3 import java.io.File; | |
| 4 import java.io.IOException; | |
| 5 import java.nio.file.Files; | |
| 6 | |
| 7 | |
| 8 public final class IoUtils { | |
| 9 private IoUtils() {} // never | |
| 10 | |
| 11 public static void move( File from, File to ) throws IOException { | |
| 12 Files.move( from.toPath(), to.toPath() ); | |
| 13 } | |
| 14 | |
| 15 public static void delete(File file) throws IOException { | |
| 16 Files.deleteIfExists( file.toPath() ); | |
| 17 } | |
| 18 } |
