com.lowagie.servlets
Class BufferedResponse.ByteArrayServletStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjavax.servlet.ServletOutputStream
          extended bycom.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
Throws:
IOException

write

public void write(int i)
           throws IOException
Throws:
IOException

flush

public void flush()
           throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

toByteArray

public byte[] toByteArray()
                   throws IOException
Throws:
IOException