org.apache.commons.configuration
Class FileURLStreamHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by org.apache.commons.configuration.FileURLStreamHandler

public class FileURLStreamHandler
extends URLStreamHandler

A custom URLStreamHandler to test loading and saving configurations to non standard URLs. This handler acts like a file handler with write support.

Version:
$Id: FileURLStreamHandler.java 1222450 2011-12-22 21:01:33Z oheger $
Author:
Emmanuel Bourg

Constructor Summary
FileURLStreamHandler()
           
 
Method Summary
protected  URLConnection openConnection(URL u)
           
 
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

FileURLStreamHandler

public FileURLStreamHandler()
Method Detail

openConnection

protected URLConnection openConnection(URL u)
                                throws IOException
Specified by:
openConnection in class URLStreamHandler
Throws:
IOException


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.