Package org.apache.cxf.io
Class DelegatingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.cxf.io.DelegatingInputStream
- All Implemented Interfaces:
- Closeable,- AutoCloseable
- 
Field SummaryFieldsFields inherited from class java.io.FilterInputStreamin
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidRead the entire original input stream and cache it.voidsetInputStream(InputStream inputStream) Methods inherited from class java.io.FilterInputStreamavailable, close, mark, markSupported, read, read, read, reset, skipMethods inherited from class java.io.InputStreamnullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
- 
Field Details- 
cachedprotected boolean cached
 
- 
- 
Constructor Details- 
DelegatingInputStream
 
- 
- 
Method Details- 
setInputStream
- 
getInputStream
- 
cacheInputpublic 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
 
-