org.displaytag.filter
Class SimpleServletOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by javax.servlet.ServletOutputStream
          extended by org.displaytag.filter.SimpleServletOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class SimpleServletOutputStream
extends javax.servlet.ServletOutputStream

A simple implementation of ServletOutputStream which wraps a ByteArrayOutputStream.

Version:
$Revision: 1081 $ ($Author: fgiust $)
Author:
Fabrizio Giustina

Constructor Summary
SimpleServletOutputStream()
           
 
Method Summary
 void reset()
          Reset the wrapped ByteArrayOutputStream.
 java.lang.String toString()
          Get the contents of the outputStream.
 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, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleServletOutputStream

public SimpleServletOutputStream()
Method Detail

write

public void write(int b)

Specified by:
write in class java.io.OutputStream

toString

public java.lang.String toString()
Get the contents of the outputStream.

Overrides:
toString in class java.lang.Object
Returns:
contents of the outputStream

reset

public void reset()
Reset the wrapped ByteArrayOutputStream.



Copyright © 2002-2007 the Displaytag team. All Rights Reserved.