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, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。