Package com.webmethods.caf.faces.servlet
Class GZIPResponseStream
java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
com.webmethods.caf.faces.servlet.GZIPResponseStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ByteArrayOutputStream
protected boolean
protected GZIPOutputStream
protected ServletOutputStream
protected HttpServletResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
closed()
void
flush()
boolean
isReady()
void
reset()
void
setWriteListener
(WriteListener listener) 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
nullOutputStream
-
Field Details
-
baos
-
gzipstream
-
closed
protected boolean closed -
response
-
output
-
-
Constructor Details
-
GZIPResponseStream
- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
closed
public boolean closed() -
reset
public void reset() -
isReady
public boolean isReady()- Specified by:
isReady
in classServletOutputStream
-
setWriteListener
- Specified by:
setWriteListener
in classServletOutputStream
-