Class UncheckedFiles

java.lang.Object
io.ocfl.core.util.UncheckedFiles

public final class UncheckedFiles extends Object
This class is just a wrapper around Files that converts IOExceptions into OcflIOExceptions.
  • Method Details

    • createDirectories

      public static Path createDirectories(Path path)
    • createDirectory

      public static Path createDirectory(Path path)
    • copy

      public static void copy(Path src, Path dst, StandardCopyOption... copyOptions)
    • copy

      public static void copy(InputStream input, Path dst, StandardCopyOption... copyOptions)
    • delete

      public static void delete(Path path)
    • deleteIfExists

      public static void deleteIfExists(Path path)
    • size

      public static long size(Path path)