Apache CXF API

org.apache.cxf.io
Class DelegatingInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.apache.cxf.io.DelegatingInputStream
All Implemented Interfaces:
Closeable

public class DelegatingInputStream
extends FilterInputStream


Field Summary
protected  boolean cached
           
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
DelegatingInputStream(InputStream is)
           
 
Method Summary
 void cacheInput()
          Read the entire original input stream and cache it.
 InputStream getInputStream()
           
 void setInputStream(InputStream inputStream)
           
 
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
 

Field Detail

cached

protected boolean cached
Constructor Detail

DelegatingInputStream

public DelegatingInputStream(InputStream is)
Method Detail

setInputStream

public void setInputStream(InputStream inputStream)

getInputStream

public InputStream getInputStream()

cacheInput

public void cacheInput()
Read the entire original input stream and cache it. Useful if switching threads or doing something where the original stream may not be valid by the time the next read() occurs


Apache CXF API

Apache CXF