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
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Read the entire original input stream and cache it.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.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
-