org.w3c.tidy.servlet.filter
Class BufferedServletOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjavax.servlet.ServletOutputStream
          extended byorg.w3c.tidy.servlet.filter.BufferedServletOutputStream

public class BufferedServletOutputStream
extends javax.servlet.ServletOutputStream

Substitute ServletOutputStream.

Version:
$Revision: 1.4 $ ($Author: vlads $)
Author:
Vlad Skarzhevskyy skarzhevskyy@gmail.com

Field Summary
protected  boolean binary
          Disabe processing for binary output.
protected  java.io.ByteArrayOutputStream buffer
          stream buffer.
protected  boolean closed
          Has this stream been closed?
protected  TidyProcessor processor
           
protected  javax.servlet.http.HttpServletResponse response
          The response with which this servlet output stream is associated.
 
Method Summary
 void close()
          Close this output stream, causing any buffered data to be flushed and any further output data to throw an IOException.
 boolean isClosed()
           
 void setBinary(boolean binary)
           
protected  void setOriginalContentLength(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
flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected java.io.ByteArrayOutputStream buffer
stream buffer.


response

protected javax.servlet.http.HttpServletResponse response
The response with which this servlet output stream is associated.


binary

protected boolean binary
Disabe processing for binary output.


processor

protected TidyProcessor processor

closed

protected boolean closed
Has this stream been closed?

Method Detail

write

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

Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Close this output stream, causing any buffered data to be flushed and any further output data to throw an IOException.

Throws:
java.io.IOException

setBinary

public void setBinary(boolean binary)
Parameters:
binary - The binary to set.

setOriginalContentLength

protected void setOriginalContentLength(int len)

isClosed

public boolean isClosed()
Returns:
Returns the closed.


Copyright © 2004-2005 sourceforge. All Rights Reserved.