public class GZIPResponseStream extends ServletOutputStream
修飾子とタイプ | フィールドと説明 |
---|---|
protected ByteArrayOutputStream |
baos
内部出力ストリーム
|
protected GZIPOutputStream |
gzipstream
GZIP出力ストリーム
|
protected boolean |
isClosed
クローズ判定
|
protected ServletOutputStream |
output
サーブレット出力ストリーム
|
protected HttpServletResponse |
response
レスポンスオブジェクト
|
コンストラクタと説明 |
---|
GZIPResponseStream(HttpServletResponse response)
コンストラクター
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
close()
このストリームを閉じ、このストリームに関連するすべてのシステムリソースを解放します。
|
boolean |
closed()
すでにストリームが閉じられているかどうかを返します。
|
void |
flush()
この出力ストリームをフラッシュし、バッファに入っている出力バイトをすべて強制的書き込みますに。
|
boolean |
isReady()
Checks if a non-blocking write will succeed.
|
void |
write(byte[] bt)
指定されたバイト配列からこの出力ストリームに b.length バイトを書き込みます。
|
void |
write(byte[] bt,
int off,
int len)
オフセット off から始まる指定のバイト配列からこの出力ストリームに len バイトを書き込みます。
|
void |
write(int bt)
この出力ストリームに指定されたバイトを書き込みます。
|
protected ByteArrayOutputStream baos
protected GZIPOutputStream gzipstream
protected boolean isClosed
protected HttpServletResponse response
protected ServletOutputStream output
public GZIPResponseStream(HttpServletResponse response) throws IOException
response
- HttpServletResponseオブジェクトIOException
- 入出力エラーが発生したときpublic void close() throws IOException
close
インタフェース内 Closeable
close
インタフェース内 AutoCloseable
close
クラス内 OutputStream
IOException
- 入出力エラーが発生したとき5.1.7.0 (2010/06/01) isClosed == true の場合に Exception でなく、return にする。 |
public void flush() throws IOException
flush
インタフェース内 Flushable
flush
クラス内 OutputStream
IOException
- 入出力エラーが発生したとき5.1.7.0 (2010/06/01) isClosed == true の場合に Exception でなく、return にする。 |
public void write(int bt) throws IOException
write
クラス内 OutputStream
bt
- byteデータIOException
- 入出力エラーが発生したとき5.1.7.0 (2010/06/01) isClosed == true の場合に Exception でなく、return にする。 |
public void write(byte[] bt) throws IOException
write
クラス内 OutputStream
bt
- バイト配列IOException
- 入出力エラーが発生したときpublic void write(byte[] bt, int off, int len) throws IOException
write
クラス内 OutputStream
bt
- バイト配列off
- オフセット数len
- 書き込みバイト数IOException
- 入出力エラーが発生したとき5.1.7.0 (2010/06/01) isClosed == true の場合に Exception でなく、return にする。 |
public boolean closed()
public boolean isReady()
false
, it will cause a callback to
WriteListener#onWritePossible() when the buffer has emptied. If
this method returns false
no further data must be written
until the contain calls WriteListener#onWritePossible().5.6.8.2 (2013/09/20) 新規追加(Tomcat8 / Servlet 3.1 で追加された abstract メソッド) |
Webアプリケーションフレームワーク openGionCopyright (c) 2009 The openGion Project.