is.lill.acre.protocol
Class FileProtocolSource

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

public class FileProtocolSource
extends java.lang.Object
implements IProtocolSource


Constructor Summary
FileProtocolSource(java.io.File file, ProtocolDescriptor desc)
           
 
Method Summary
 java.lang.String getDescription()
           
 ProtocolDescriptor getDescriptor()
           
 java.io.InputStream getInputStream()
          Get an InputStream from which one or more protocols may be read.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileProtocolSource

public FileProtocolSource(java.io.File file,
                          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.

getDescription

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

getDescriptor

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