org.arakhne.vmutil.file
Class HandlerFactory

java.lang.Object
  extended by org.arakhne.vmutil.file.HandlerFactory
All Implemented Interfaces:
URLStreamHandlerFactory

public class HandlerFactory
extends Object
implements URLStreamHandlerFactory

This class defines a factory for URL stream "resource" and "file" protocol handlers.

It is used by the URL class to create a URLStreamHandler for a "resource" protocol.

To use this factory, invoke the following code only ONCE time: URL.setURLStreamHandlerFactory(new FileResourceURLStreamHandlerFactory());.

Since:
6.0
Version:
6.3 (rev:285) 2011-10-14 12:02:41
Author:
Stéphane GALLAND
See Also:
URLStreamHandlerFactory, URL.setURLStreamHandlerFactory(URLStreamHandlerFactory)
Maven Group Id:
org.arakhne.afc
Maven Artifact Id:
arakhneVmutils

Constructor Summary
HandlerFactory()
           
 
Method Summary
 URLStreamHandler createURLStreamHandler(String protocol)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlerFactory

public HandlerFactory()
Method Detail

createURLStreamHandler

public URLStreamHandler createURLStreamHandler(String protocol)

Specified by:
createURLStreamHandler in interface URLStreamHandlerFactory


Copyright © 2006-2011 Arakhnê.org Consortium. All rights reserved under LGPL license terms.