public class WriterOutputStream extends OutputStream
| 构造器和说明 |
|---|
WriterOutputStream(Writer writer)
带Writer参数构造函数
|
WriterOutputStream(Writer writer,
String encoding)
带Writer和字符编码格式参数的构造函数
|
public WriterOutputStream(Writer writer, String encoding)
writer - - OutputStream使用的Readerencoding - - OutputStream使用的字符编码格式。public WriterOutputStream(Writer writer)
writer - - OutputStream使用的Writerpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 OutputStreamIOExceptionOutputStream.close()public void flush()
throws IOException
flush 在接口中 Flushableflush 在类中 OutputStreamIOExceptionOutputStream.flush()public void write(byte[] b)
throws IOException
write 在类中 OutputStreamIOExceptionOutputStream.write(byte[])public void write(byte[] b,
int off,
int len)
throws IOException
write 在类中 OutputStreamIOExceptionOutputStream.write(byte[], int, int)public void write(int b)
throws IOException
write 在类中 OutputStreamIOExceptionOutputStream.write(int)Copyright © 2022–2023. All rights reserved.