public class WriterOutputStream extends OutputStream
构造器和说明 |
---|
WriterOutputStream(Writer writer)
Creates a new WriterOutputStream.
|
WriterOutputStream(Writer writer,
String encoding)
Creates a new WriterOutputStream.
|
public WriterOutputStream(Writer writer)
writer
- the Writer to write topublic void close() throws IOException
close
在接口中 Closeable
close
在接口中 AutoCloseable
close
在类中 OutputStream
IOException
public void flush() throws IOException
flush
在接口中 Flushable
flush
在类中 OutputStream
IOException
public void write(byte[] buf, int offset, int length) throws IOException
write
在类中 OutputStream
IOException
public void write(byte[] buf) throws IOException
write
在类中 OutputStream
IOException
public void write(int b) throws IOException
write
在类中 OutputStream
IOException
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.