edu.internet2.middleware.grouper.ui
Class CaptureServletOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by javax.servlet.ServletOutputStream
          extended by edu.internet2.middleware.grouper.ui.CaptureServletOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class CaptureServletOutputStream
extends ServletOutputStream

Used in conjunction with a HttpServletResponseWrapper so that data can be captured

Version:
$Id: CaptureServletOutputStream.java,v 1.4 2007-04-11 08:19:24 isgwb Exp $
Author:
Gary Brown.

Constructor Summary
CaptureServletOutputStream()
          Constructor - sets up internal ByteArrayOutputStream for capturing data
 
Method Summary
 String toString()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class javax.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println
 
Methods inherited from class java.io.OutputStream
close, flush
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CaptureServletOutputStream

public CaptureServletOutputStream()
Constructor - sets up internal ByteArrayOutputStream for capturing data

Method Detail

write

public void write(int b)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] b)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object