is.lill.acre.protocol
Class URLProtocolSource
java.lang.Object
is.lill.acre.protocol.URLProtocolSource
- All Implemented Interfaces:
- IProtocolSource
public class URLProtocolSource
- extends java.lang.Object
- implements IProtocolSource
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLProtocolSource
public URLProtocolSource(java.net.URL base,
ProtocolDescriptor desc)
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