com.norconex.commons.lang.io
Class FilteredInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.norconex.commons.lang.io.FilteredInputStream
All Implemented Interfaces:
Closeable

public class FilteredInputStream
extends InputStream

Decorates an InputStream with a stream filter. The stream filter allows to control which line of text is being returned by the decorated instance when read.

Author:
Pascal Essiembre

Constructor Summary
FilteredInputStream(InputStream is, IInputStreamFilter filter)
          Constructor.
 
Method Summary
 int read()
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilteredInputStream

public FilteredInputStream(InputStream is,
                           IInputStreamFilter filter)
                    throws IOException
Constructor.

Throws:
IOException
Method Detail

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException


Copyright © 2008-2013 Norconex Inc.. All Rights Reserved.