Commits

Anonymous committed 1690d35

pre checkin of issue CACHE-267
SplitServletOutputStream doesn't pass flush() on to underlying stream

  • Participants
  • Parent commits c011bbb

Comments (0)

Files changed (1)

File src/java/com/opensymphony/oscache/web/filter/SplitServletOutputStream.java

         captureStream.write(b, off, len);
         passThroughStream.write(b, off, len);
     }
+
+    /** 
+     * Flushes both the output streams.
+     * @throws IOException
+     */    
+    public void flush() throws IOException {
+        super.flush();
+        captureStream.flush(); //why not?
+        passThroughStream.flush();
+    }    
+
+    /**
+     * Closes both the output streams.
+     * @throws IOException 
+     */    
+    public void close() throws IOException {
+        super.close();
+        captureStream.close();
+        passThroughStream.close();
+    }    
+
 }