public class InputStreamProvider
extends java.lang.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 |
---|---|
java.io.InputStream |
getInputStream(java.io.File f)
get an InputStream for the file
|
java.io.InputStream |
getInputStream(java.lang.String pathToFile)
get an InputStream for this file
|
public static final int GZIP_MAGIC
public java.io.InputStream getInputStream(java.lang.String pathToFile) throws java.io.IOException
pathToFile
- the path of the file.java.io.IOException
public java.io.InputStream getInputStream(java.io.File f) throws java.io.IOException
f
- a Filejava.io.IOException