org.extex.scanner.stream
Interface InputStreamInterceptor


public interface InputStreamInterceptor

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

Version:
$Revision:5563 $
Author:
Gerd Neugebauer

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

Method Detail

pipe

java.io.InputStream pipe(java.io.InputStream stream)
Attach a processor to an input stream. If the decorator decides that no additional pipe element is required it should simply return the input stream.

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