org.littleshoot.util
Interface InputStreamHandler

All Known Implementing Classes:
FileInputStreamHandler, NoOpInputStreamHandler

public interface InputStreamHandler

Utility interface for any class that wants to customize handling of an InputStream.


Method Summary
 void handleInputStream(InputStream is)
          Handles the specified InputStream.
 

Method Detail

handleInputStream

void handleInputStream(InputStream is)
                       throws IOException
Handles the specified InputStream. Implementors of this method MUST call close on the InputStream when they are done processing it.

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.