Java URL to File Name getFileFromURL(URL url)

Here you can find the source of getFileFromURL(URL url)

Description

get File From URL

License

Open Source License

Declaration

public static File getFileFromURL(URL url) throws URISyntaxException 

Method Source Code


//package com.java2s;

import java.io.File;

import java.net.URISyntaxException;
import java.net.URL;

public class Main {
    public static File getFileFromURL(URL url) throws URISyntaxException {
        return new File(url.toURI());
    }//from w w  w. java2s.c o m
}

Related

  1. getFileForUrl(URL url)
  2. getFileFrom(final URL url)
  3. getFileFromUrl(String url, File base)
  4. getFileFromUrl(String urlPath)
  5. getFileFromUrl(URL url)
  6. getFileFromURL(URL url)
  7. getFileFromURL(URL urlToDecode)
  8. getFileName(final CharSequence url)
  9. getFilename(final URL url)