com.oreilly.servlet
Class CacheServletOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjavax.servlet.ServletOutputStream
          extended bycom.oreilly.servlet.CacheServletOutputStream

class CacheServletOutputStream
extends javax.servlet.ServletOutputStream


Field Summary
(package private)  java.io.ByteArrayOutputStream cache
           
(package private)  javax.servlet.ServletOutputStream delegate
           
 
Constructor Summary
(package private) CacheServletOutputStream(javax.servlet.ServletOutputStream out)
           
 
Method Summary
 java.io.ByteArrayOutputStream getBuffer()
           
 void write(byte[] b)
           
 void write(byte[] buf, int offset, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

javax.servlet.ServletOutputStream delegate

cache

java.io.ByteArrayOutputStream cache
Constructor Detail

CacheServletOutputStream

CacheServletOutputStream(javax.servlet.ServletOutputStream out)
Method Detail

getBuffer

public java.io.ByteArrayOutputStream getBuffer()

write

public void write(int b)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(byte[] b)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(byte[] buf,
                  int offset,
                  int len)
           throws java.io.IOException
Throws:
java.io.IOException