Package org.apache.commons.vfs2.provider
Class DefaultURLStreamHandler
java.lang.Object
java.net.URLStreamHandler
org.apache.commons.vfs2.provider.DefaultURLStreamHandler
A default URL stream handler that will work for most file systems.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance.DefaultURLStreamHandler
(VfsComponentContext context, FileSystemOptions fileSystemOptions) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected URLConnection
openConnection
(URL url) protected void
protected String
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, sameFile, setURL, setURL
-
Constructor Details
-
DefaultURLStreamHandler
Constructs a new instance.- Parameters:
context
- VFS component context.
-
DefaultURLStreamHandler
Constructs a new instance.- Parameters:
context
- VFS component context.fileSystemOptions
- FileSystemOptions to resolve files.
-
-
Method Details
-
openConnection
- Specified by:
openConnection
in classURLStreamHandler
- Throws:
IOException
-
parseURL
- Overrides:
parseURL
in classURLStreamHandler
-
toExternalForm
- Overrides:
toExternalForm
in classURLStreamHandler
-