com.plumtree.uiinfrastructure.web
Class HttpCompressionOutputStream

java.lang.Object
  extended by ServletOutputStream
      extended by com.plumtree.uiinfrastructure.web.HttpCompressionOutputStream

public class HttpCompressionOutputStream
extends ServletOutputStream

Author:
scottc This class represents a servlet output stream for HTTP compression. It has a minimum compression size (in bytes), below which no compression is used. This is a critical feature for the plumtree Binary Gateway which relies on detecting a small uncompressed token in the response. -SDC 10/27/04

Field Summary
static java.lang.String DEFLATE_STR
           
static java.lang.String GZIP_STR
           
 
Constructor Summary
HttpCompressionOutputStream(HttpServletResponse response, IHttpCompressionUtil compressionUtil)
           
 
Method Summary
 void close()
           
 boolean closed()
           
 void flush()
           
 void reset()
           
 void write(byte[] b)
           
 void write(byte[] b, int offset, int length)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GZIP_STR

public static final java.lang.String GZIP_STR
See Also:
Constant Field Values

DEFLATE_STR

public static final java.lang.String DEFLATE_STR
See Also:
Constant Field Values
Constructor Detail

HttpCompressionOutputStream

public HttpCompressionOutputStream(HttpServletResponse response,
                                   IHttpCompressionUtil compressionUtil)
                            throws java.io.IOException
Throws:
java.io.IOException
Method Detail

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Throws:
java.io.IOException

reset

public void reset()

write

public void write(byte[] b)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int offset,
                  int length)
           throws java.io.IOException
Throws:
java.io.IOException

write

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

closed

public boolean closed()



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.