org.jboss.virtual.protocol
Class AbstractVFSHandler
java.lang.Object
java.net.URLStreamHandler
org.jboss.virtual.protocol.AbstractVFSHandler
- Direct Known Subclasses:
- Handler, Handler, Handler
public abstract class AbstractVFSHandler
- extends URLStreamHandler
VFS's file URL handler.
- Author:
- Bill Burke, Ales Justin
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 |
AbstractVFSHandler
public AbstractVFSHandler()
getProtocolNameLength
protected int getProtocolNameLength()
- Get protocol name length.
e.g. vfsfile - 7, vfszip - 6, ...
- Returns:
- protocol name lenght
openConnection
protected URLConnection openConnection(URL url)
throws IOException
- Specified by:
openConnection
in class URLStreamHandler
- Throws:
IOException
Copyright © 2009 JBoss, A division of Red Hat, Inc. All Rights Reserved.