|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
java.lang.Objectjava.io.Writer
java.io.FilterWriter
public abstract class FilterWriter
����д���ѹ��˵��ַ����ij����ࡣ������ 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)
���ַ�д�������ijһ���֡� |
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
�е� write
c
- ָ��Ҫд���ַ��� int��
IOException
- ������� I/O ����public void write(char[] cbuf, int off, int len) throws IOException
Writer
�е� write
cbuf
- Ҫд����ַ�������off
- ƫ�������Ӹô���ʼ��ȡ�ַ�len
- Ҫд���ַ�������
IOException
- ������� I/O ����public void write(String str, int off, int len) throws IOException
Writer
�е� write
str
- Ҫд����ַ���off
- ƫ�������Ӹô���ʼ��ȡ�ַ�len
- Ҫд���ַ�������
IOException
- ������� I/O ����public void flush() throws IOException
Flushable
�е� flush
Writer
�е� flush
IOException
- ������� I/O ����public void close() throws IOException
Writer
���Ƶ�����
Closeable
�е� close
Writer
�е� close
IOException
- ������� I/O ����
|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ���� ����������֤��������������ĵ����·ַ�������