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
public class RewindableInputStream
- extends FilterInputStream
Input stream wrapper to support rewinding to start of input.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RewindableInputStream
public RewindableInputStream(InputStream is)
- Constructs rewindable input stream
- Parameters:
is
- stream supporting mark
makeRewindable
public static RewindableInputStream makeRewindable(InputStream is)
throws IOException
- Parameters:
is
-
- Returns:
-
- Throws:
IOException
rewind
public void rewind()
- Rewind to start of input.
release
public void release()
- Release resources.
Apache CXF