| java.lang.Object java.io.Writer org.codehaus.groovy.runtime.StringBufferWriter
StringBufferWriter | public class StringBufferWriter extends Writer (Code) | | This class codes around a silly limiation of StringWriter which doesn't allow a StringBuffer
to be passed in as a constructor for some bizzare reason.
So we replicate the behaviour of StringWriter here but allow a StringBuffer to be passed in.
author: James Strachan version: $Revision: 695 $ |
Method Summary | |
public void | close() Closing a StringWriter has no effect. | public void | flush() Flush the stream. | 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 text, int offset, int length) Write a portion of an array of characters. | public void | write(String text) Write a string. | public void | write(String text, int offset, int length) Write a portion of a string. |
StringBufferWriter | public StringBufferWriter(StringBuffer buffer)(Code) | | Create a new string writer which will append the text to the given StringBuffer
|
close | public void close() throws IOException(Code) | | Closing a StringWriter 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.
|
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 text, int offset, int length)(Code) | | Write a portion of an array of characters.
Parameters: text - Array of characters Parameters: offset - Offset from which to start writing characters Parameters: length - Number of characters to write |
write | public void write(String text, int offset, int length)(Code) | | Write a portion of a string.
Parameters: text - the text to be written Parameters: offset - offset from which to start writing characters Parameters: length - Number of characters to write |
|
|