public class FileAccessUtils extends Object
| Constructor and Description |
|---|
FileAccessUtils() |
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
createLimitedBufferedInputStream(File file,
long offset,
long length) |
static InputStream |
createLimitedInflaterInputStream(File file,
long offset,
long length)
Creates a limited, buffered
InflaterInputStream from a file. |
public static InputStream createLimitedInflaterInputStream(File file, long offset, long length) throws IOException
InflaterInputStream from a file.file - the file to readoffset - the offset to startlength - the number of bytes to read counting from offsetInputStreamIOExceptionpublic static InputStream createLimitedBufferedInputStream(File file, long offset, long length) throws IOException
IOExceptionCopyright © 2016. All rights reserved.