|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Writer
org.mmbase.util.StringBufferWriter
Oddly enough, Java does not provide this itself. Code is nearly identical to java.io.StringWriter.
StringWriter| Field Summary | |
protected java.lang.StringBuffer |
buf
|
| Fields inherited from class java.io.Writer |
lock |
| Constructor Summary | |
StringBufferWriter(java.lang.StringBuffer buffer)
Create a new stringbufferwriter |
|
| Method Summary | |
void |
close()
Closing a StringWriter has no effect. |
void |
flush()
Flush the stream. |
java.lang.StringBuffer |
getBuffer()
Return the string buffer itself. |
java.lang.String |
toString()
Return the buffer's current value as a string. |
void |
write(char[] cbuf,
int off,
int len)
Write a portion of an array of characters. |
void |
write(int c)
Write a single character. |
void |
write(java.lang.String str)
Write a string. |
void |
write(java.lang.String str,
int off,
int len)
Write a portion of a string. |
| Methods inherited from class java.io.Writer |
write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.StringBuffer buf
| Constructor Detail |
public StringBufferWriter(java.lang.StringBuffer buffer)
| Method Detail |
public void write(int c)
public void write(char[] cbuf,
int off,
int len)
cbuf - Array of charactersoff - Offset from which to start writing characterslen - Number of characters to writepublic void write(java.lang.String str)
public void write(java.lang.String str,
int off,
int len)
str - String to be writtenoff - Offset from which to start writing characterslen - Number of characters to writepublic java.lang.String toString()
public java.lang.StringBuffer getBuffer()
public void flush()
public void close()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||