Class DelegatingInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.cxf.io.DelegatingInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class DelegatingInputStream extends FilterInputStream
  • Field Details

    • cached

      protected boolean cached
  • Constructor Details

    • DelegatingInputStream

      public DelegatingInputStream(InputStream is)
  • Method Details

    • setInputStream

      public void setInputStream(InputStream inputStream)
    • getInputStream

      public InputStream 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