title: How to convert URL string into java.io.File in Android
body: <p>I am overriding the <code>android.webkit.WebViewClient</code> method <code>shouldInterceptRequest(WebView view, String url)</code> in a custom class. In some cases, the <code>url</code> parameter points to an encrypted local file, in the form <code>file:///path/to/file.extension</code>. I need to convert the String <code>url</code> into a <code>java.io.File</code> to decrypt it.<br>
  How do I reliably convert the <code>url</code> parameter into a valid path to pass into <code>new File(path)</code>?</p>