is.lill.acre.protocol
Class URLProtocolSource

java.lang.Object
  extended by is.lill.acre.protocol.URLProtocolSource
All Implemented Interfaces:
IProtocolSource

public class URLProtocolSource
extends java.lang.Object
implements IProtocolSource


Constructor Summary
URLProtocolSource(java.net.URL base, ProtocolDescriptor desc)
           
 
Method Summary
 java.net.URL getAddress()
           
 java.lang.String getDescription()
           
 ProtocolDescriptor getDescriptor()
           
 java.io.InputStream getInputStream()
          Get an InputStream from which one or more protocols may be read.
 void setBase(java.net.URL u)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLProtocolSource

public URLProtocolSource(java.net.URL base,
                         ProtocolDescriptor desc)
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Description copied from interface: IProtocolSource
Get an InputStream from which one or more protocols may be read.

Specified by:
getInputStream in interface IProtocolSource
Returns:
The stream
Throws:
java.io.IOException - if a stream cannot be created.

getAddress

public java.net.URL getAddress()

setBase

public void setBase(java.net.URL u)

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface IProtocolSource

getDescriptor

public ProtocolDescriptor getDescriptor()
Specified by:
getDescriptor in interface IProtocolSource