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 - 要写入的输入流IOException - IO异常时抛出int write(ByteBuffer src) throws IOException
src - 要写入的数据IOException - IO异常时抛出void cancel()
throws IOException
IOException - IO异常时抛出void write(byte[] data,
int off,
int len)
throws IOException
data - 要写入的数据off - 开始位置len - 数据长度IOException - IO异常时抛出void close()
throws IOException
IOException - IO异常时抛出Copyright © 2022. All rights reserved.