public abstract class FilterWriter extends Writer
FilterWriterそのものが、格納されているストリームにすべての要求を渡すデフォルトのメソッドを提供します。FilterWriterのサブクラスは、これらのメソッドの一部をオーバーライドし、追加のメソッドやフィールドを提供することもできます。| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
FilterWriter(Writer out)
フィルタ処理された新しいライターを作成します。
|
protected Writer out
protected FilterWriter(Writer out)
out - ベースとなるストリームを提供するWriterオブジェクト。NullPointerException - outがnullである場合public void write(int c)
throws IOException
write、クラス: Writerc - 書き込まれる文字を指定するintIOException - 入出力エラーが発生した場合public void write(char[] cbuf,
int off,
int len)
throws IOException
write、クラス: Writercbuf - 書き込む文字のバッファoff - 文字の読込み開始オフセットlen - 書き込む文字数IOException - 入出力エラーが発生した場合public void write(String str, int off, int len) throws IOException
write、クラス: Writerstr - 書き込まれる文字列off - 文字の読込み開始オフセットlen - 書き込む文字数IOException - 入出力エラーが発生した場合public void flush()
throws IOException
flush、インタフェース: Flushableflush、クラス: WriterIOException - 入出力エラーが発生した場合public void close()
throws IOException
Writerclose、インタフェース: Closeableclose、インタフェース: AutoCloseableclose、クラス: WriterIOException - 入出力エラーが発生した場合 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright© 1993, 2014, Oracle and/or its affiliates. All rights reserved.