de.enough.polish.browser.protocols
Class ResourceProtocolHandler

java.lang.Object
  extended by de.enough.polish.browser.ProtocolHandler
      extended by de.enough.polish.browser.protocols.ResourceProtocolHandler

public class ResourceProtocolHandler
extends ProtocolHandler

Protocol handler for resource URLs.


Field Summary
 
Fields inherited from class de.enough.polish.browser.ProtocolHandler
bytebuf, protocolName
 
Constructor Summary
ResourceProtocolHandler()
          Creates a new resource protocol handler using resource as the protocol name.
ResourceProtocolHandler(String protocolName)
          Creates a new resource protocol handler using the specified protocol name.
 
Method Summary
 StreamConnection getConnection(String url)
          Creates a StreamConnection for the given url.
 
Methods inherited from class de.enough.polish.browser.ProtocolHandler
getProtocolName, readByteArrayFromStream, stripProtocol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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