java.io.CharArrayWriter翻译[5]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:


toCharArray

public char[] toCharArray()
Returns a copy of the input data. 返回输入数据的拷贝。

Returns:
an array of chars copied from the input data. 从输出数据拷贝的字符数组。

size

public int size()
Returns the current size of the buffer. 返回缓冲的当前大小。

Returns:
an int representing the current size of the buffer. 表示缓冲当前大小的int值。

toString

public String toString()
Converts input data to a string. 将输入数据转换成字符串。

Overrides:
toString in class Object
Returns:
the string. 字符串。

flush

public void flush()
Flush the stream. 刷新流。

Specified by:
flush in class Writer

close

public void close()
Close the stream. This method does not release the buffer, since its contents might still be required. 关闭流。该方法不释放缓冲,因为它的内容可能仍有需要。

Specified by:
close in class Writer

JavaTM 2 Platform
Std. Ed. v1.4.2

本文关键:java.io.CharArrayWriter翻译
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top