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 SummaryConstructorsConstructorDescriptionConstructs a new instance.DefaultURLStreamHandler(VfsComponentContext context, FileSystemOptions fileSystemOptions) Constructs a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionprotected URLConnectionopenConnection(URL url) protected voidprotected StringMethods inherited from class java.net.URLStreamHandlerequals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, sameFile, setURL, setURL
- 
Constructor Details- 
DefaultURLStreamHandlerConstructs a new instance.- Parameters:
- context- VFS component context.
 
- 
DefaultURLStreamHandlerConstructs a new instance.- Parameters:
- context- VFS component context.
- fileSystemOptions- FileSystemOptions to resolve files.
 
 
- 
- 
Method Details- 
openConnection- Specified by:
- openConnectionin class- URLStreamHandler
- Throws:
- IOException
 
- 
parseURL- Overrides:
- parseURLin class- URLStreamHandler
 
- 
toExternalForm- Overrides:
- toExternalFormin class- URLStreamHandler
 
 
-