org.littleshoot.util
Class NoOpInputStreamHandler

java.lang.Object
  extended by org.littleshoot.util.NoOpInputStreamHandler
All Implemented Interfaces:
InputStreamHandler

public class NoOpInputStreamHandler
extends Object
implements InputStreamHandler

Class that does nothing when passed an InputStream to process.


Constructor Summary
NoOpInputStreamHandler()
           
 
Method Summary
 void handleInputStream(InputStream is)
          Handles the specified InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpInputStreamHandler

public NoOpInputStreamHandler()
Method Detail

handleInputStream

public void handleInputStream(InputStream is)
                       throws IOException
Description copied from interface: InputStreamHandler
Handles the specified InputStream. Implementors of this method MUST call close on the InputStream when they are done processing it.

Specified by:
handleInputStream in interface InputStreamHandler
Parameters:
is - The InputStream to handle.
Throws:
IOException - If there's a read error reading from the stream or an output error while handling it.


Copyright © 2011-2013 LittleShoot. All Rights Reserved.