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. |
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 fileFileNotFoundException
public 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
- FileNotFoundException
public int read() throws IOException
IOException
public int available() throws IOException
IOException
public void close() throws IOException
IOException
public void reset() throws IOException
IOException
public boolean markSupported()
public void mark(int readlimit)
public long skip(long n) throws IOException
IOException
public int read(byte[] b) throws IOException
IOException
public int read(byte[] b, int off, int len) throws IOException
IOException
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"