| java.lang.Object java.io.Writer org.mmbase.util.StringBuilderWriter
StringBuilderWriter | public class StringBuilderWriter extends Writer (Code) | | Oddly enough, Java does not provide this itself. Code is nearly identical to
java.io.StringWriter. Code is also a near copy of
StringBufferWriter .
See Also: java.io.StringWriter author: Michiel Meeuwissen since: MMBase-1.9 version: $Id: StringBuilderWriter.java,v 1.1 2006/10/14 21:57:20 michiel Exp $ |
Method Summary | |
public void | close() Closing a StringBuilderWriter has no effect. | public void | flush() Flush the stream. | public StringBuilder | getBuffer() Return the string buffer itself. | public String | toString() Return the buffer's current value as a string. | public void | write(int c) Write a single character. | public void | write(char charArray, int offset, int length) Write a portion of an array of characters. | public void | write(String str) Write a string. | public void | write(String str, int offset, int length) Write a portion of a string. |
close | public void close() throws IOException(Code) | | Closing a StringBuilderWriter has no effect. The methods in this
class can be called after the stream has been closed without generating
an IOException.
|
flush | public void flush()(Code) | | Flush the stream.
|
getBuffer | public StringBuilder getBuffer()(Code) | | Return the string buffer itself.
StringBuilder holding the current buffer value. |
toString | public String toString()(Code) | | Return the buffer's current value as a string.
|
write | public void write(int c)(Code) | | Write a single character.
|
write | public void write(char charArray, int offset, int length)(Code) | | Write a portion of an array of characters.
Parameters: charArray - Array of characters Parameters: offset - Offset from which to start writing characters Parameters: length - Number of characters to write |
write | public void write(String str, int offset, int length)(Code) | | Write a portion of a string.
Parameters: str - String to be written Parameters: offset - Offset from which to start writing characters Parameters: length - Number of characters to write |
|
|