|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.io.Writer
java.io.FilterWriter
public abstract class FilterWriter
フィルタ処理された文字列ストリームを書き込むための抽象クラスです。FilterWriter のデフォルトのメソッドでは、保存されたストリームにすべての要求が渡されます。FilterWriter のサブクラスは、これらのメソッドの一部をオーバーライドします。また、メソッドとフィールドを追加することもできます。
| フィールドの概要 | |
|---|---|
protected Writer |
out
基本となる文字出力ストリームです。 |
| クラス java.io.Writer から継承されたフィールド |
|---|
lock |
| コンストラクタの概要 | |
|---|---|
protected |
FilterWriter(Writer out)
フィルタ処理された新しいライターを作成します。 |
| メソッドの概要 | |
|---|---|
void |
close()
ストリームを閉じます。 |
void |
flush()
ストリームをフラッシュします。 |
void |
write(char[] cbuf,
int off,
int len)
文字の配列の一部を書き込みます。 |
void |
write(int c)
単一の文字を書き込みます。 |
void |
write(String str,
int off,
int len)
文字列の一部を書き込みます。 |
| クラス java.io.Writer から継承されたメソッド |
|---|
append, append, append, write, write |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected Writer out
| コンストラクタの詳細 |
|---|
protected FilterWriter(Writer out)
out - 基本となるストリームを提供する Writer オブジェクト
NullPointerException - out が null の場合| メソッドの詳細 |
|---|
public void write(int c)
throws IOException
Writer 内の writec - 書き込む文字を指定する int
IOException - 入出力エラーが発生した場合
public void write(char[] cbuf,
int off,
int len)
throws IOException
Writer 内の writecbuf - 書き込む文字のバッファoff - 文字の読み込み開始オフセットlen - 書き込む文字数
IOException - 入出力エラーが発生した場合
public void write(String str,
int off,
int len)
throws IOException
Writer 内の writestr - 書き込まれる文字列off - 文字の読み込み開始オフセットlen - 書き込む文字数
IOException - 入出力エラーが発生した場合
public void flush()
throws IOException
Flushable 内の flushWriter 内の flushIOException - 入出力エラーが発生した場合
public void close()
throws IOException
Closeable 内の closeWriter 内の closeIOException - 入出力エラーが発生した場合
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。