public class FileChannelInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
FileChannelInputStream(java.nio.channels.FileChannel channel,
boolean closeChannel)
Create a new file object input stream from the file channel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
public FileChannelInputStream(java.nio.channels.FileChannel channel,
boolean closeChannel)
channel - the file channelcloseChannel - whether closing the stream should close the channelpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOException