|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Field Summary | |
---|---|
StringBuffer |
buffer
|
Constructor Summary | |
StringBufferWriter(StringBuffer buffer)
Create a new string writer which will append the text to the given StringBuffer |
Method Summary | |
---|---|
void |
close()
Closing a StringWriter has no effect. |
void |
flush()
Flush the stream. |
String |
toString()
Return the buffer's current value as a string. |
void |
write(int c)
Write a single character. |
void |
write(def text, int offset, int length)
Write a portion of an array of characters. |
void |
write(String text)
Write a string. |
void |
write(String text, int offset, int length)
Write a portion of a string. |
Constructor Detail |
---|
public StringBufferWriter(StringBuffer buffer)
Method Detail |
---|
public void close()
public void flush()
public String toString()
public void write(int c)
public void write(def text, int offset, int length)
public void write(String text)
public void write(String text, int offset, int length)