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 URLConnectionopenConnection(URL url) protected voidprotected StringMethods 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:
openConnectionin classURLStreamHandler- Throws:
IOException
-
parseURL
- Overrides:
parseURLin classURLStreamHandler
-
toExternalForm
- Overrides:
toExternalFormin classURLStreamHandler
-