org.extex.scanner.stream
Interface WriterInterceptor


public interface WriterInterceptor

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

Version:
$Revision:5563 $
Author:
Gerd Neugebauer

Method Summary
 java.io.Writer pipe(java.io.Writer writer)
          Attach a processor to a writer.
 

Method Detail

pipe

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

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