public class StringBufferWriter extends Writer
Constructor and Description |
---|
StringBufferWriter()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
AppendingStringBuffer |
getStringBuffer() |
void |
reset()
resets the buffer.
|
void |
setStringBuffer(AppendingStringBuffer buffer) |
void |
write(char ch)
Writers the char to the buffer
|
void |
write(char[] charArray) |
void |
write(char[] charArray,
int offset,
int length) |
void |
write(String string) |
void |
write(String string,
int offset,
int length) |
public AppendingStringBuffer getStringBuffer()
public void setStringBuffer(AppendingStringBuffer buffer)
buffer
- public void write(char ch)
ch
- public void write(char[] charArray)
write
in class Writer
Writer.write(char[])
public void write(char[] charArray, int offset, int length)
write
in class Writer
Writer.write(char[], int, int)
public void write(String string)
write
in class Writer
Writer.write(java.lang.String)
public void write(String string, int offset, int length)
write
in class Writer
Writer.write(java.lang.String, int, int)
public void flush()
flush
in interface Flushable
flush
in class Writer
Writer.flush()
public void reset()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
Writer.close()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.