| java.lang.Object java.io.Writer workbench.util.StrWriter
StrWriter | public class StrWriter extends Writer (Code) | | A replacement for a StringWriter which is not synchronized for
performance reasons
author: support@sql-workbench.net |
Constructor Summary | |
public | StrWriter() Create a new string writer, using the default initial string-buffer
size. | public | StrWriter(int initialSize) Create a new string writer, using the specified initial string-buffer
size. |
Method Summary | |
public void | close() Closing a StrWriter has no effect. | public void | flush() Flush the stream. | public StrBuffer | 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 cbuf, int off, int len) Write a portion of an array of characters. | public void | write(String str) Write a string. | public void | write(String str, int off, int len) Write a portion of a string. |
StrWriter | public StrWriter()(Code) | | Create a new string writer, using the default initial string-buffer
size.
|
StrWriter | public StrWriter(int initialSize)(Code) | | Create a new string writer, using the specified initial string-buffer
size.
Parameters: initialSize - an int specifying the initial size of the buffer. |
close | public void close() throws IOException(Code) | | Closing a StrWriter 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 StrBuffer 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 cbuf, int off, int len)(Code) | | Write a portion of an array of characters.
Parameters: cbuf - Array of characters Parameters: off - Offset from which to start writing characters Parameters: len - Number of characters to write |
write | public void write(String str, int off, int len)(Code) | | Write a portion of a string.
Parameters: str - String to be written Parameters: off - Offset from which to start writing characters Parameters: len - Number of characters to write |
|
|