org.extex.scanner.stream
Interface ReaderInterceptor


public interface ReaderInterceptor

This interface describes the ability to manipulate an Reader by attaching additional processing units in a pipe manner.

Version:
$Revision:5563 $
Author:
Gerd Neugebauer

Method Summary
 java.io.Reader pipe(java.io.Reader reader)
          Attach a processor to an input stream.
 

Method Detail

pipe

java.io.Reader pipe(java.io.Reader reader)
Attach a processor to an input stream. If the interceptor decides that no additional pipe element is required it should simply return the reader passed in as argument.

Parameters:
reader - the reader to add some processing unit to
Returns:
the new reader. This value should never be null.