| java.lang.Object java.io.Writer org.mmbase.util.StringBufferWriter
StringBufferWriter | public class StringBufferWriter extends Writer (Code) | | Oddly enough, Java does not provide this itself. Code is nearly identical to java.io.StringWriter.
See Also: java.io.StringWriter author: Michiel Meeuwissen since: MMBase-1.7 version: $Id: StringBufferWriter.java,v 1.4 2005/10/05 10:09:05 michiel Exp $ |
Method Summary | |
public void | close() Closing a StringBufferWriter has no effect. | public void | flush() Flush the stream. | public StringBuffer | 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 StringBufferWriter 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 StringBuffer getBuffer()(Code) | | Return the string buffer itself.
StringBuffer 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 |
|
|