java io StringWriter flush()方法刷新流。1语法publicvoidflush()2参数无3返回值无4示例packagecom yiidian; ***一点教程网:http: www y
java io StringWriter close()方法关闭一个的StringWriter但没有效果。可以在关闭流之后调用此类中的方法,而不会产生IOException。1语法pu
java io StringWriter append(CharSequencecsq,intstart,intend)方法将指定字符序列到这个Writer的子序列。1语法publicStringWriterappend(
java io StringWriter append(CharSequencecsq)方法将指定字符序列到此writer。1语法publicStringWriterappend(CharSequencecsq)2参数csq:
java io StringWriter append(charc)方法将指定字符到此writer。1语法publicStringWriterappend(charc)2参数c:要追加的16位字符。3返回值
1 什么是Java StringWriterJava StringWriter类是一个字符流,它从字符串缓冲区收集输出,该缓冲区可用于构造String。StringWriter类继
java io PushbackReader unread(intc)方法将其复制到推回缓冲区前面推回一个字符。此方法返回后,将下一个字符被读取的值(字符)。1语法publ
java io PushbackReader unread(char[]cbuf,intoff,intlen)方法是将其复制到推回缓冲区的前面推回一个字符阵列的一部分。此方法返回后,将
java io PushbackReader unread(char[]cbuf)方法推回一个字符将其复制到推回缓冲区前面的数组。此方法返回后,将下一个字符被读取cbuf[0],
java io PushbackReader skip(longn)方法跳过字符。此方法将阻塞,直到有字符可用,发生I O错误,或者该流的末尾。1语法publiclongskip(lon