de.unkrig.commons.io
Class ProxyInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by de.unkrig.commons.io.ProxyInputStream
All Implemented Interfaces:
java.io.Closeable

public class ProxyInputStream
extends java.io.FilterInputStream

A FilterInputStream where the delegate can also be changed after construction.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
ProxyInputStream(java.io.InputStream delegate)
           
 
Method Summary
 void setDelegate(java.io.InputStream delegate)
           
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyInputStream

public ProxyInputStream(java.io.InputStream delegate)
Method Detail

setDelegate

public void setDelegate(java.io.InputStream delegate)
Parameters:
delegate - The new delegate