net.sourceforge.esw.collection
Interface IIOTransducer

All Superinterfaces:
ITransducer, java.io.Serializable
All Known Implementing Classes:
AIOTransducer, DictionaryTransducer, XMLTransducer

public interface IIOTransducer
extends ITransducer

Performs Transduction against a stream of data from either a Reader or a Writer.

This transduction occurs both ways; put() takes data from the IMetaCollection instance to which this ITransducer instance is attached and places it into the data source represented by this ITransducer instance. The get() method takes data from the data source represented by this ITransducer instance and places it into the IMetaCollection instance to which this ITransducer instance is attached.

This IIOTransducer instance provides stream-based access for stream-based ITransducer implementors. It abstracts out the setting and getting of the streams, or the readers and the writers, into this interface.

For specific type of streams, like file-based streams or string-based streams, see the TransducerAdapter objects.

See Also:
FileTransducerAdapter, StringTransducerAdapter, URLTransducerAdapter, IMetaCollection

Method Summary
 java.io.Reader getReader()
          Returns the Reader instance to be used by this IIOTransducer instance.
 java.io.Writer getWriter()
          Returns the Writer instance to be used by this IIOTransducer instance.
 void setReader(java.io.Reader aReader)
          Sets the Reader instance for this IIOTransducer instance.
 void setWriter(java.io.Writer aWriter)
          Sets the Writer instance for this IIOTransducer instance.
 
Methods inherited from interface net.sourceforge.esw.collection.ITransducer
get, getContextFactory, put, setContextFactory
 

Method Detail

getReader

public java.io.Reader getReader()
Returns the Reader instance to be used by this IIOTransducer instance.
See Also:
setReader( Reader )

getWriter

public java.io.Writer getWriter()
Returns the Writer instance to be used by this IIOTransducer instance.
See Also:
setWriter( Writer )

setReader

public void setReader(java.io.Reader aReader)
Sets the Reader instance for this IIOTransducer instance.
Parameters:
aReader - the Reader instance to be used by this IIOTransducer instance.
See Also:
getReader()

setWriter

public void setWriter(java.io.Writer aWriter)
Sets the Writer instance for this IIOTransducer instance.
Parameters:
aWriter - the Writer instance to be used by this IIOTransducer instance.
See Also:
getWriter()


Copyright 2002 Free Software Foundation. All Rights Reserved.