de.grogra.pf.io
Interface ReaderSource

All Superinterfaces:
FilterSource, RegistryContext
All Known Implementing Classes:
FileSource, LazyFilter, NullSource, ReaderSourceImpl, StreamAdapter

public interface ReaderSource
extends FilterSource

This subinterface of FilterSource has to be implemented by filter sources whose flavor supports Readers (IOFlavor.READER). It represents the data by an instance of Reader, i.e., as a stream of characters.

Author:
Ole Kniemeyer

Nested Class Summary
 
Nested classes/interfaces inherited from interface de.grogra.pf.io.FilterSource
FilterSource.MetaDataKey<V>
 
Field Summary
 
Fields inherited from interface de.grogra.pf.io.FilterSource
AUTO_PROGRESS, DESTINATION_FILE, DESTINATION_URL
 
Method Summary
 java.io.Reader getReader()
          Returns a reader to obtain the data as a stream of characters.
 
Methods inherited from interface de.grogra.pf.io.FilterSource
getFilter, getFlavor, getMetaData, getSystemId, initProgressMonitor, setMetaData, setProgress
 
Methods inherited from interface de.grogra.pf.registry.RegistryContext
getRegistry
 

Method Detail

getReader

java.io.Reader getReader()
                         throws java.io.IOException
Returns a reader to obtain the data as a stream of characters.

Returns:
a reader for the data
Throws:
java.io.IOException