public class CustomProtocolHandler
extends java.net.URLStreamHandler
Constructor and Description |
---|
CustomProtocolHandler() |
Modifier and Type | Method and Description |
---|---|
static java.io.File |
getCanonicalFileFromFileUrl(java.net.URL url)
On Windows names of files from network neighborhood must be corrected before open.
|
protected java.net.URLConnection |
openConnection(java.net.URL u)
Creates and opens the connection
|
protected java.net.URLConnection openConnection(java.net.URL u) throws java.io.IOException
openConnection
in class java.net.URLStreamHandler
u
- The URLjava.io.IOException
public static java.io.File getCanonicalFileFromFileUrl(java.net.URL url)
url
- The file URL.java.lang.IllegalArgumentException
- if the URL is not file.© Copyright Syncro Soft SRL 2002 - 2014. All rights reserved.