Class FileUtils


  • public final class FileUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      FileUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Optional<java.nio.file.Path> download​(java.net.URL url, java.nio.file.Path destination, java.util.function.Consumer<java.lang.String> errorLogger)  
      static void extract​(java.nio.file.Path archive, java.nio.file.Path destination, java.util.function.Consumer<java.lang.String> errorLogger)  
      static java.lang.String hashFor​(java.net.URI uri)  
      static boolean isZip​(java.nio.file.Path archive)  
      static java.lang.String normalizePathSeparators​(java.lang.String path)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileUtils

        public FileUtils()
    • Method Detail

      • normalizePathSeparators

        public static java.lang.String normalizePathSeparators​(java.lang.String path)
      • download

        public static java.util.Optional<java.nio.file.Path> download​(java.net.URL url,
                                                                      java.nio.file.Path destination,
                                                                      java.util.function.Consumer<java.lang.String> errorLogger)
      • extract

        public static void extract​(java.nio.file.Path archive,
                                   java.nio.file.Path destination,
                                   java.util.function.Consumer<java.lang.String> errorLogger)
      • isZip

        public static boolean isZip​(java.nio.file.Path archive)
      • hashFor

        public static java.lang.String hashFor​(java.net.URI uri)