public class BufferedOutputStreamWriter extends Writer
| Constructor and Description |
|---|
BufferedOutputStreamWriter(OutputStream stream)
Contructor.
|
BufferedOutputStreamWriter(OutputStream stream,
int bufferSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this writer and its underlaying stream.
|
void |
flush()
Forces the writing of all buffered data.
|
boolean |
hasFailed()
Returns whether or not an error occured during operation of this writer.
|
void |
write(char c)
Writes a single character.
|
void |
write(char[] cbuf,
int offset,
int length)
Bulk write function.
|
void |
write(String s)
Bulk write function, specificly meant for strings.
|
public BufferedOutputStreamWriter(OutputStream stream)
stream - The stream to write too.public BufferedOutputStreamWriter(OutputStream stream, int bufferSize)
stream - The stream to write too.bufferSize - The size of the interal buffer.public void write(char c)
c - The character to write.public void write(char[] cbuf,
int offset,
int length)
write in class WriterWriter.write(char[], int, int)public void write(String s)
write in class WriterWriter.write(java.lang.String)public void flush()
flush in interface Flushableflush in class WriterWriter.flush()public void close()
public boolean hasFailed()
Copyright © 2012 CWI. All Rights Reserved.