public class NIOBufferedInputStream extends InputStream
| 构造器和说明 |
|---|
NIOBufferedInputStream(ReadableByteChannel channel) |
NIOBufferedInputStream(ReadableByteChannel channel,
int size) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
available() |
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
mark, markSupported, read, resetpublic NIOBufferedInputStream(ReadableByteChannel channel, int size) throws ClosedChannelException, IOException
public NIOBufferedInputStream(ReadableByteChannel channel) throws ClosedChannelException, IOException
public int available()
throws IOException
available 在类中 InputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 InputStreamIOExceptionpublic int read()
throws IOException
read 在类中 InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read 在类中 InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip 在类中 InputStreamIOExceptionCopyright © 2015. All rights reserved.