| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
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)创建一个新的 filtered writer。 | 
| 方法摘要 | |
|---|---|
|  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 - 如果发生 I/O 错误
public void write(char[] cbuf,
                  int off,
                  int len)
           throws IOException
Writer 中的 writecbuf - 要写入的字符缓冲区off - 偏移量,从该处开始读取字符len - 要写入字符的数量
IOException - 如果发生 I/O 错误
public void write(String str,
                  int off,
                  int len)
           throws IOException
Writer 中的 writestr - 要写入的字符串off - 偏移量,从该处开始读取字符len - 要写入字符的数量
IOException - 如果发生 I/O 错误
public void flush()
           throws IOException
Flushable 中的 flushWriter 中的 flushIOException - 如果发生 I/O 错误
public void close()
           throws IOException
Writer 复制的描述
Closeable 中的 closeWriter 中的 closeIOException - 如果发生 I/O 错误| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。