com.lowagie.servlets
Class BufferedResponse.ByteArrayServletStream

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

private static class BufferedResponse.ByteArrayServletStream
extends ServletOutputStream

Implements a ServletOutputStream that writes to a memory buffer.


Field Summary
private  ByteArrayOutputStream data
           
 
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 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
IOException

write

public void write(int i)
           throws IOException
IOException

flush

public void flush()
           throws IOException
IOException

close

public void close()
           throws IOException
IOException

toByteArray

public byte[] toByteArray()
                   throws IOException
IOException