com.lowagie.servlets
Class BufferedResponse.ByteArrayServletStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--javax.servlet.ServletOutputStream
              |
              +--com.lowagie.servlets.BufferedResponse.ByteArrayServletStream
Enclosing class:
BufferedResponse

private static class BufferedResponse.ByteArrayServletStream
extends javax.servlet.ServletOutputStream

Implements a ServletOutputStream that writes to a memory buffer.


Field Summary
private  ByteArrayOutputStream data
           
 
Fields inherited from class javax.servlet.ServletOutputStream
 
Constructor Summary
BufferedResponse.ByteArrayServletStream()
           
 
Method Summary
 void close()
           
 void flush()
           
 byte[] toByteArray()
           
 void write(byte[] b, int o, int l)
           
 void write(int i)
           
 
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
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

private ByteArrayOutputStream data
Constructor Detail

BufferedResponse.ByteArrayServletStream

public BufferedResponse.ByteArrayServletStream()
Method Detail

write

public void write(byte[] b,
                  int o,
                  int l)
           throws IOException
Overrides:
write in class OutputStream
IOException

write

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

flush

public void flush()
           throws IOException
Overrides:
flush in class OutputStream
IOException

close

public void close()
           throws IOException
Overrides:
close in class OutputStream
IOException

toByteArray

public byte[] toByteArray()
                   throws IOException
IOException