java.io.CharArrayWriter翻译[2]

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

本文简介:

 

Constructor Summary
CharArrayWriter()
          Creates a new CharArrayWriter. 创建一个CharArrayWriter。
CharArrayWriter(int initialSize)
          Creates a new CharArrayWriter with the specified initial size. 创建一个指定初始大小的CharArrayWriter。
 
Method Summary
 voidclose()
          Close the stream. 关闭流。
 voidflush()
          Flush the stream. 刷新流。
 voidreset()
          Resets the buffer so that you can use it again without throwing away the already allocated buffer. 重置缓冲,可以使你再次使用,而不用抛出已分配的缓冲。
 intsize()
          Returns the current size of the buffer. 返回缓冲的当前大小。
 char[]toCharArray()
          Returns a copy of the input data. 返回输入数据的拷贝。
 StringtoString()
          Converts input data to a string. 将输入数据转换成字符串。
 voidwrite(char[] c, int off, int len)
          Writes characters to the buffer. 向缓冲写入字符。
 voidwrite(int c)
          Writes a character to the buffer. 向缓冲写入一个字符。
 voidwrite(String str, int off, int len)
          Write a portion of a string to the buffer. 向缓冲写入一段字符串。
 voidwriteTo(Writer out)
          Writes the contents of the buffer to another character stream. 将缓冲的内容写入另一个字符流。
 
Methods inherited from class java.io.Writer
write, write

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

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

go top