public interface OutputStreamNio
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cancel()
取消且关闭
|
void |
close()
(写入结束)关闭流
|
void |
write(byte[] data,
int off,
int len)
写入
|
int |
write(ByteBuffer src)
写入
|
int |
write(InputStream src)
写入
|
int write(InputStream src) throws IOException
src - 要写入的输入流IOExceptionint write(ByteBuffer src) throws IOException
src - 要写入的数据IOExceptionvoid cancel()
throws IOException
IOExceptionvoid write(byte[] data,
int off,
int len)
throws IOException
data - 要写入的数据off - 开始位置len - 数据长度IOExceptionvoid close()
throws IOException
IOExceptionCopyright © 2020. All rights reserved.