Class UrlToFileMapper


  • public final class UrlToFileMapper
    extends java.lang.Object
    Maps Java URL representations to File representations, on any Java version. This used to be used to do URL to File mapping in pre-Java1.4 days, but since we now require Java 1.5, it is largely unnecessary.
    Since:
    UDK 3.2.8
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.File mapUrlToFile​(java.net.URL url)
      Maps Java URL representations to File representations.
      • Methods inherited from class java.lang.Object

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

      • mapUrlToFile

        public static java.io.File mapUrlToFile​(java.net.URL url)
        Maps Java URL representations to File representations.
        Parameters:
        url - some URL, possibly null.
        Returns:
        a corresponding File, or null on failure.