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:
java.io.Closeable

public class DelegatingInputStream
extends java.io.FilterInputStream


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

DelegatingInputStream

public DelegatingInputStream(java.io.InputStream is)
Method Detail

setInputStream

public void setInputStream(java.io.InputStream inputStream)

getInputStream

public java.io.InputStream getInputStream()

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.FilterInputStream
Throws:
java.io.IOException

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