java.io.CharArrayWriter翻译[4]
[入库:2006年2月23日] [更新:2007年3月24日]
write
public void write(int c)
- Writes a character to the buffer. 向缓冲写入一个字符。
- Overrides:
write in class Writer
- Parameters:
c - int specifying a character to be written. 指定被写入字符的int值
write
public void write(char[] c,
int off,
int len)- Writes characters to the buffer. 向缓冲写入字符。
- Specified by:
write in class Writer
- Parameters:
c - the data to be written 写入的数据 off - the start offset in the data 数据的起始偏移 len - the number of chars that are written 写入的字符数
write
public void write(String str,
int off,
int len)- Write a portion of a string to the buffer. 向缓冲写入一段字符串。
- Overrides:
write in class Writer
- Parameters:
str - String to be written from 被写入的字符串 off - Offset from which to start reading characters 开始读取字符的偏移位置 len - Number of characters to be written 写入的字符数
writeTo
public void writeTo(Writer out)
throws IOException- Writes the contents of the buffer to another character stream. 将缓冲的内容写入另一个字符流。
- Parameters:
out - the output stream to write to 写入的输出流 - Throws:
IOException - If an I/O error occurs. 如果I/O错误发生时抛出。
reset
public void reset()
- Resets the buffer so that you can use it again without throwing away the already allocated buffer. 重置缓冲,可以使你再次使用,而不用抛出已分配的缓冲。
本文关键:java.io.CharArrayWriter翻译
本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)