jet.servlet.internal
Class ServletOutputStreamWrapper

java.lang.Object
  extended by java.io.OutputStream
      extended by javax.servlet.ServletOutputStream
          extended by jet.servlet.internal.ServletOutputStreamWrapper
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Cloneable, Identifiable, Poolable, Resetable

public class ServletOutputStreamWrapper
extends javax.servlet.ServletOutputStream
implements Poolable

Author:
Markus.Meisters@web.de

Field Summary
static java.lang.String KEY
          key for pooling
private  java.io.OutputStream out
          wrapped outputstream
 
Constructor Summary
ServletOutputStreamWrapper()
           
ServletOutputStreamWrapper(java.io.OutputStream out)
           
 
Method Summary
 java.lang.Object clone()
          This method retruns a clone from the component
 void finishGZIP()
          Method tofinish the gzip outputstream it a output stream is given
 java.lang.String getIdentifier()
          Returns the identifier used for pooling
 java.io.OutputStream getOutputStream()
           
 void init(java.io.OutputStream out)
          Method to init the output stream
 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.io.OutputStream
close, flush
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY

public static final java.lang.String KEY
key for pooling

See Also:
Constant Field Values

out

private java.io.OutputStream out
wrapped outputstream

Constructor Detail

ServletOutputStreamWrapper

public ServletOutputStreamWrapper()
See Also:
ServletOutputStream.ServletOutputStream()

ServletOutputStreamWrapper

public ServletOutputStreamWrapper(java.io.OutputStream out)
See Also:
ServletOutputStream.ServletOutputStream()
Method Detail

init

public void init(java.io.OutputStream out)
Method to init the output stream

Parameters:
out - OutputStream

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException
See Also:
OutputStream.write(int)

write

public void write(byte[] b)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException
See Also:
OutputStream.write(byte[])

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException
See Also:
OutputStream.write(byte[], int, int)

finishGZIP

public void finishGZIP()
                throws java.io.IOException
Method tofinish the gzip outputstream it a output stream is given

Throws:
java.io.IOException

getIdentifier

public java.lang.String getIdentifier()
Returns the identifier used for pooling

Specified by:
getIdentifier in interface Identifiable
Returns:
String identifier

reset

public void reset()
Specified by:
reset in interface Resetable
See Also:
Resetable.reset()

clone

public java.lang.Object clone()
This method retruns a clone from the component

Overrides:
clone in class java.lang.Object
Returns:
the cloned object

getOutputStream

public java.io.OutputStream getOutputStream()