hep.io.root.daemon.xrootd
Class XrootdURLStreamFactory

java.lang.Object
  extended by hep.io.root.daemon.xrootd.XrootdURLStreamFactory
All Implemented Interfaces:
URLStreamHandlerFactory

public class XrootdURLStreamFactory
extends Object
implements URLStreamHandlerFactory

A URLStreamHandlerFactory for registering the root: protocol

Usage:

    URL.setURLStreamHandlerFactory(new XrootdURLStreamFactory());
    URL url = new URL("root://root.cern.ch/demo.root");
 

Author:
Tony Johnson

Constructor Summary
XrootdURLStreamFactory()
           
XrootdURLStreamFactory(XrootdInputStreamFactory factory)
           
 
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

XrootdURLStreamFactory

public XrootdURLStreamFactory()

XrootdURLStreamFactory

public XrootdURLStreamFactory(XrootdInputStreamFactory factory)
Method Detail

createURLStreamHandler

public URLStreamHandler createURLStreamHandler(String protocol)
Specified by:
createURLStreamHandler in interface URLStreamHandlerFactory


Copyright © 2000-2013 FreeHEP. All Rights Reserved.