| java.lang.Object java.io.Writer java.io.StringWriter com.sun.portal.desktop.util.NSStringWriter
NSStringWriter | public class NSStringWriter extends StringWriter (Code) | | This class is taken from the JDK 1.2.2_11 reference
implementation and modified to be unsynchronized, for
performance reasons. Objects based on this class
must not be used
in a context where they are accessed by multiple
threads.
|
Constructor Summary | |
public | NSStringWriter() Create a new string writer, using the default initial string-buffer
size. | public | NSStringWriter(int initialSize) Create a new string writer, using the specified initial string-buffer
size. |
Method Summary | |
public void | close() Close the stream. | 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 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. |
NSStringWriter | public NSStringWriter()(Code) | | Create a new string writer, using the default initial string-buffer
size.
|
NSStringWriter | public NSStringWriter(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) | | Close the stream. This method does not release the buffer, since its
contents might still be required.
|
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 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 |
|
|