public class InputStreamProvider extends Object
Modifier and Type | Field and Description |
---|---|
static int |
GZIP_MAGIC
The magic number found at the start of a GZIP stream.
|
Constructor and Description |
---|
InputStreamProvider() |
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream(File f)
get an InputStream for the file
|
InputStream |
getInputStream(String pathToFile)
get an InputStream for this file
|
public static final int GZIP_MAGIC
public InputStream getInputStream(String pathToFile) throws IOException
pathToFile
- the path of the file.IOException
public InputStream getInputStream(File f) throws IOException
f
- a FileIOException