public class FileChannelInputStream extends InputStream
| 构造器和说明 |
|---|
FileChannelInputStream(FileChannel channel,
boolean closeChannel)
Create a new file object input stream from the file channel.
|
public FileChannelInputStream(FileChannel channel, boolean closeChannel)
channel - the file channelcloseChannel - whether closing the stream should close the channelpublic int read()
throws IOException
read 在类中 InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read 在类中 InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read 在类中 InputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 InputStreamIOExceptionCopyright © 2022. All rights reserved.