org.fhw.cabaweb.webfrontend.filters
Class GZIPResponseStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjavax.servlet.ServletOutputStream
          extended byorg.fhw.cabaweb.webfrontend.filters.GZIPResponseStream

public class GZIPResponseStream
extends javax.servlet.ServletOutputStream

Filter-Klasse die im Falle das der Client das unterstützt, den Stream GZIP komprimiert. Antwort Stream Klasse. ORIGINAL aus dem Buch Servlets and JavaServer Pages von Jayson Falkner, Kevin Jones (http://www.jspbook.com/)

Version:
Version 1.0 24.07.2004
Author:
Jayson Falkner, Kevin Jones

Field Summary
protected  OutputStream bufferedOutput
           
protected  boolean closed
           
protected  javax.servlet.ServletOutputStream output
           
protected  javax.servlet.http.HttpServletResponse response
           
 
Constructor Summary
GZIPResponseStream(javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
 void close()
           
 boolean closed()
           
 void flush()
           
 void reset()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, 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.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bufferedOutput

protected OutputStream bufferedOutput

closed

protected boolean closed

response

protected javax.servlet.http.HttpServletResponse response

output

protected javax.servlet.ServletOutputStream output
Constructor Detail

GZIPResponseStream

public GZIPResponseStream(javax.servlet.http.HttpServletResponse response)
                   throws IOException
Method Detail

close

public void close()
           throws IOException
Throws:
IOException

flush

public void flush()
           throws IOException
Throws:
IOException

write

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

write

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

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Throws:
IOException

closed

public boolean closed()

reset

public void reset()


Copyright © 2004 TVC-Software.com. All Rights Reserved.