|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Writer
org.pentaho.reporting.libraries.base.util.StringBufferWriter
public class StringBufferWriter
Todo: Document Me
| Constructor Summary | |
|---|---|
StringBufferWriter(StringBuffer buffer)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the stream, flushing it first. |
void |
flush()
Flush the stream. |
StringBuffer |
getBuffer()
|
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(String str)
Write a string. |
| Methods inherited from class java.io.Writer |
|---|
append, append, append, write, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringBufferWriter(StringBuffer buffer)
| Method Detail |
|---|
public StringBuffer getBuffer()
public void write(int c)
throws IOException
Subclasses that intend to support efficient single-character output should override this method.
write in class Writerc - int specifying a character to be written.
IOException - If an I/O error occurs
public void write(String str)
throws IOException
write in class Writerstr - String to be written
IOException - If an I/O error occurs
public void write(char[] cbuf,
int off,
int len)
throws IOException
write in class Writercbuf - Array of charactersoff - Offset from which to start writing characterslen - Number of characters to write
IOException - If an I/O error occurs
public void flush()
throws IOException
flush in interface Flushableflush in class WriterIOException - If an I/O error occurs
public void close()
throws IOException
close in interface Closeableclose in class WriterIOException - If an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||