public class OutputStreamWriter extends Writer
| Constructor and Description |
|---|
OutputStreamWriter(OutputStream os) |
OutputStreamWriter(OutputStream os,
String enc) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str,
int off,
int len) |
public OutputStreamWriter(OutputStream os)
public OutputStreamWriter(OutputStream os, String enc) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in class WriterIOExceptionpublic void flush()
throws IOException
flush in class WriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void write(int c)
throws IOException
write in class WriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write in class WriterIOExceptionCopyright © 2026. All rights reserved.