public class LazyFileInputStream
extends org.apache.commons.io.input.AutoCloseInputStream
| Constructor and Description |
|---|
LazyFileInputStream(java.io.File file)
Creates a new
LazyFileInputStream for the given file. |
LazyFileInputStream(java.io.FileDescriptor fd)
Creates a new
LazyFileInputStream for the given file
descriptor. |
LazyFileInputStream(java.lang.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(java.io.File file)
throws java.io.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 filejava.io.FileNotFoundExceptionpublic LazyFileInputStream(java.io.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(java.lang.String name)
throws java.io.FileNotFoundException
LazyFileInputStream for the given file. If the
file is unreadable, a FileNotFoundException is thrown.name - java.io.FileNotFoundExceptionpublic int read()
throws java.io.IOException
read in class org.apache.commons.io.input.ProxyInputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class org.apache.commons.io.input.ProxyInputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class org.apache.commons.io.input.AutoCloseInputStreamjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class org.apache.commons.io.input.ProxyInputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class org.apache.commons.io.input.ProxyInputStreampublic void mark(int readlimit)
mark in class org.apache.commons.io.input.ProxyInputStreampublic long skip(long n)
throws java.io.IOException
skip in class org.apache.commons.io.input.ProxyInputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class org.apache.commons.io.input.ProxyInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class org.apache.commons.io.input.ProxyInputStreamjava.io.IOException"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"