public class FileResponseStream extends ServletOutputStream
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected ByteArrayOutputStream |
filestream
内部出力ストリーム
|
protected boolean |
isClosed
クローズ判定
|
protected ServletOutputStream |
output
サーブレット出力ストリーム
|
| コンストラクタと説明 |
|---|
FileResponseStream(ServletResponse response,
String filename)
コンストラクター
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
close()
このストリームを閉じ、このストリームに関連するすべてのシステムリソースを解放します。
|
boolean |
closed()
すでにストリームが閉じられているかどうかを返します。
|
void |
flush()
この出力ストリームをフラッシュし、バッファに入っている出力バイトをすべて強制的書き込みますに。
|
void |
write(byte[] bt)
指定されたバイト配列からこの出力ストリームに b.length バイトを書き込みます。
|
void |
write(byte[] bt,
int off,
int len)
オフセット off から始まる指定のバイト配列からこの出力ストリームに len バイトを書き込みます。
|
void |
write(int bt)
この出力ストリームに指定されたバイトを書き込みます。
|
protected ByteArrayOutputStream filestream
protected boolean isClosed
protected ServletOutputStream output
public FileResponseStream(ServletResponse response, String filename) throws IOException
response - レスポンスfilename - ファイル名IOExceptionpublic void close()
throws IOException
close インタフェース内 Closeableclose インタフェース内 AutoCloseableclose クラス内 OutputStreamIOExceptionpublic void flush()
throws IOException
flush インタフェース内 Flushableflush クラス内 OutputStreamIOException| 5.1.7.0 (2010/06/01) isClosed == true の場合に Exception でなく、return にする。 |
public void write(int bt)
throws IOException
write クラス内 OutputStreambt - byteデータIOException| 5.1.7.0 (2010/06/01) isClosed == true の場合に Exception でなく、return にする。 |
public void write(byte[] bt)
throws IOException
write クラス内 OutputStreambt - バイト配列IOExceptionpublic void write(byte[] bt,
int off,
int len)
throws IOException
write クラス内 OutputStreambt - バイト配列off - オフセット数len - 書き込みバイト数IOException| 5.1.7.0 (2010/06/01) isClosed == true の場合に Exception でなく、return にする。 |
public boolean closed()
Webアプリケーションフレームワーク openGionCopyright (c) 2009 The openGion Project.