Class DelegatingInputStream

    • Field Detail

      • cached

        protected boolean cached
    • Constructor Detail

      • DelegatingInputStream

        public DelegatingInputStream​(InputStream is)
    • Method Detail

      • setInputStream

        public void setInputStream​(InputStream inputStream)
      • 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