org.jboss.virtual.protocol
Class AbstractVFSHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by org.jboss.virtual.protocol.AbstractVFSHandler
Direct Known Subclasses:
Handler, Handler, Handler

public abstract class AbstractVFSHandler
extends java.net.URLStreamHandler

VFS's file URL handler.

Author:
Bill Burke, Ales Justin

Constructor Summary
AbstractVFSHandler()
           
 
Method Summary
protected  int getProtocolNameLength()
          Get protocol name length.
protected  java.net.URLConnection openConnection(java.net.URL url)
           
 
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

AbstractVFSHandler

public AbstractVFSHandler()
Method Detail

getProtocolNameLength

protected int getProtocolNameLength()
Get protocol name length. e.g. vfsfile - 7, vfszip - 6, ...

Returns:
protocol name lenght

openConnection

protected java.net.URLConnection openConnection(java.net.URL url)
                                         throws java.io.IOException
Specified by:
openConnection in class java.net.URLStreamHandler
Throws:
java.io.IOException