| 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.io.Writer
java.io.FilterWriter
public abstract class FilterWriter
フィルタ処理された文字ストリームのための抽象クラスです。abstract クラス 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
Writer の記述:
Closeable 内の closeWriter 内の closeIOException - 入出力エラーが発生した場合
  | 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。