public class BytesInputStream extends ByteArrayInputStream implements InputStreamNio
buf, count, mark, pos| 构造器和说明 |
|---|
BytesInputStream(byte[] buf) |
BytesInputStream(byte[] buf,
int offset,
int length) |
| 限定符和类型 | 方法和说明 |
|---|---|
InputStreamNio |
duplicate()
产生同样内容的副本流,与主体读取互不影响
|
static InputStream |
empty()
无内容流
|
int |
read(ByteBuffer dst)
读取
|
available, close, mark, markSupported, read, read, reset, skipreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitavailable, close, readpublic BytesInputStream(byte[] buf)
public BytesInputStream(byte[] buf,
int offset,
int length)
public int read(ByteBuffer dst) throws IOException
InputStreamNioread 在接口中 InputStreamNiodst - 读取到的缓冲区IOException - IO异常时抛出public InputStreamNio duplicate() throws IOException
InputStreamNioduplicate 在接口中 InputStreamNioIOException - IO异常时抛出public static InputStream empty()
Copyright © 2021. All rights reserved.