Apache CXF API

org.apache.cxf.ws.rm
Class RewindableInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by 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.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
RewindableInputStream(InputStream is)
          Constructs rewindable input stream
 
Method Summary
static RewindableInputStream makeRewindable(InputStream is)
           
 void release()
          Release resources.
 void rewind()
          Rewind to start of input.
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RewindableInputStream

public RewindableInputStream(InputStream is)
Constructs rewindable input stream

Parameters:
is - stream supporting mark
Method Detail

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 API

Apache CXF