edu.udo.cs.wvtool.generic.loader
Class SourceAsTextLoader

java.lang.Object
  extended by edu.udo.cs.wvtool.generic.loader.SourceAsTextLoader
All Implemented Interfaces:
WVTDocumentLoader

public class SourceAsTextLoader
extends java.lang.Object
implements WVTDocumentLoader

This loader simply uses the defined source as text. It is a sort of hack in order to allow reading text directly from string attributes of Yale.

Version:
$Id: SourceAsTextLoader.java,v 1.1 2006/03/15 14:18:59 ingomierswa Exp $
Author:
Ingo Mierswa

Field Summary
private  java.io.InputStream stream
           
 
Constructor Summary
SourceAsTextLoader()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stream

private java.io.InputStream stream
Constructor Detail

SourceAsTextLoader

public SourceAsTextLoader()
Method Detail

loadDocument

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

Specified by:
loadDocument in interface WVTDocumentLoader
Parameters:
d - the WVTDocumentInfo about the document being loaded
Returns:
an InputStream


close

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

Specified by:
close in interface WVTDocumentLoader
Parameters:
d - the WVTDocumentInfo about the document
Throws:
WVToolException