public class FileChannelInputStream extends InputStream
| Constructor and Description |
|---|
FileChannelInputStream(FileChannel channel)
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) |
available, mark, markSupported, reset, skippublic FileChannelInputStream(FileChannel channel)
channel - the file channelpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.