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 Summary
FieldsFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRead the entire original input stream and cache it.voidsetInputStream(InputStream inputStream) Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
cached
protected boolean cached
-
-
Constructor Details
-
DelegatingInputStream
-
-
Method Details
-
setInputStream
-
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
-