de.enough.polish.browser.protocols
Class ResourceProtocolHandler
java.lang.Object
de.enough.polish.browser.ProtocolHandler
de.enough.polish.browser.protocols.ResourceProtocolHandler
public class ResourceProtocolHandler
- extends ProtocolHandler
Protocol handler for resource URLs.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceProtocolHandler
public ResourceProtocolHandler()
- Creates a new resource protocol handler using
resource as the protocol name.
ResourceProtocolHandler
public ResourceProtocolHandler(String protocolName)
- Creates a new resource protocol handler using the specified protocol name.
- Parameters:
protocolName - the name of the protocol - resource by default.
getConnection
public StreamConnection getConnection(String url)
throws IOException
- Description copied from class:
ProtocolHandler
- Creates a
StreamConnection for the given url.
- Specified by:
getConnection in class ProtocolHandler
- Parameters:
url - the url
- Returns:
- the stream conenction for the given url
- Throws:
IOException - if an error occurs