edu.udo.cs.wvtool.generic.loader
Interface WVTDocumentLoader

All Known Implementing Classes:
SourceAsTextLoader, UniversalLoader

public interface WVTDocumentLoader

This interface represents a mechanism by which a document is loaded. Loading refers to the operation of opening a stream to the source of the document.

Version:
$Id: WVTDocumentLoader.java,v 1.2 2006/06/06 11:45:24 mjwurst Exp $
Author:
Michael Wurst

Method Summary
 void close(WVTDocumentInfo d)
          Close the resource from which the given document has been read.
 java.io.InputStream loadDocument(WVTDocumentInfo d)
          Open the document and return an input stream on it.
 

Method Detail

loadDocument

java.io.InputStream loadDocument(WVTDocumentInfo d)
                                 throws WVToolException
Open the document and return an input stream on it.

Parameters:
d - the WVTDocumentInfo about the document being loaded
Returns:
an InputStream
Throws:
java.lang.Exception - if an error occurs
WVToolException


close

void close(WVTDocumentInfo d)
           throws WVToolException
Close the resource from which the given document has been read.

Parameters:
d - the WVTDocumentInfo about the document
Throws:
WVToolException