Package org.apache.cxf.ws.rm
Class RewindableInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.cxf.ws.rm.RewindableInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Input stream wrapper to support rewinding to start of input.
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RewindableInputStreamvoidrelease()Release resources.voidrewind()Rewind to start of input.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
-
Constructor Details
-
RewindableInputStream
Constructs rewindable input stream- Parameters:
is- stream supporting mark
-
-
Method Details
-
makeRewindable
- Parameters:
is-- Returns:
- Throws:
IOException
-
rewind
public void rewind()Rewind to start of input. -
release
public void release()Release resources.
-