public class WriterOutputStream
extends OutputStream
| Constructor and Description |
|---|
WriterOutputStream(Writer writer) |
WriterOutputStream(Writer writer,
String charsetName) |
WriterOutputStream(Writer writer,
String charsetName,
boolean autoFlush) |
WriterOutputStream(Writer writer,
String charsetName,
int outputBufferSize) |
WriterOutputStream(Writer writer,
String charsetName,
int outputBufferSize,
boolean autoFlush) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
String |
getEncoding() |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int offset,
int length) |
void |
write(int b) |
public WriterOutputStream(Writer writer)
public WriterOutputStream(Writer writer,
String charsetName)
public WriterOutputStream(Writer writer,
String charsetName,
boolean autoFlush)
public WriterOutputStream(Writer writer,
String charsetName,
int outputBufferSize)
public WriterOutputStream(Writer writer,
String charsetName,
int outputBufferSize,
boolean autoFlush)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic String getEncoding()
public void write(byte[] bytes)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] bytes,
int offset,
int length)
throws IOException
write in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOException