public class LazyFileInputStream extends AutoCloseInputStream
| Constructor and Description |
|---|
LazyFileInputStream(File file)
Creates a new
LazyFileInputStream for the given file. |
LazyFileInputStream(FileDescriptor fd)
Creates a new
LazyFileInputStream for the given file
descriptor. |
LazyFileInputStream(String name)
Creates a new
LazyFileInputStream for the given file. |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
public LazyFileInputStream(File file) throws FileNotFoundException
LazyFileInputStream for the given file. If the
file is unreadable, a FileNotFoundException is thrown.
The file is not opened until the first byte is read from the stream.file - the fileFileNotFoundExceptionpublic LazyFileInputStream(FileDescriptor fd)
LazyFileInputStream for the given file
descriptor.
The file is not opened until the first byte is read from the stream.fd - public LazyFileInputStream(String name) throws FileNotFoundException
LazyFileInputStream for the given file. If the
file is unreadable, a FileNotFoundException is thrown.name - FileNotFoundExceptionpublic int read()
throws IOException
read in class ProxyInputStreamIOExceptionpublic int available()
throws IOException
available in class ProxyInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class AutoCloseInputStreamIOExceptionpublic void reset()
throws IOException
reset in class ProxyInputStreamIOExceptionpublic boolean markSupported()
markSupported in class ProxyInputStreampublic void mark(int readlimit)
mark in class ProxyInputStreampublic long skip(long n)
throws IOException
skip in class ProxyInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class ProxyInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class ProxyInputStreamIOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved