Class UrlUtils

java.lang.Object
com.regnosys.rosetta.common.util.UrlUtils

public class UrlUtils extends Object
  • Field Details

  • Constructor Details

    • UrlUtils

      public UrlUtils()
  • Method Details

    • openURL

      public static Reader openURL(URL url) throws IOException
      Throws:
      IOException
    • getFileName

      public static String getFileName(URL url)
    • getBaseFileName

      public static String getBaseFileName(URL url)
    • getFileExtension

      public static String getFileExtension(URL url)
    • getParent

      public static URL getParent(URL url)
    • resolve

      public static URL resolve(URL url, String child)
    • toPath

      public static Path toPath(URL resource)
    • toUrl

      public static URL toUrl(Path path)
    • toPortableString

      public static String toPortableString(Path path)
      Path.toString() does not work well on Windows, this method provides toString() that works across platforms