|
Oxygen XML Editor, Version 14.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.URLStreamHandler
ro.sync.sample.plugin.customprotocol.CustomProtocolHandler
public class CustomProtocolHandler
Handler for the file2 protocol
Constructor Summary | |
---|---|
CustomProtocolHandler()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.net.URLStreamHandler |
---|
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomProtocolHandler()
Method Detail |
---|
protected java.net.URLConnection openConnection(java.net.URL u) throws java.io.IOException
openConnection
in class java.net.URLStreamHandler
u
- The URL
java.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.
|
Oxygen XML Editor, Version 14.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |