public static class ManifestMerger2.FileStreamProvider
extends java.lang.Object
InputStream
instances for a given File handle.| Constructor and Description |
|---|
FileStreamProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.InputStream |
getInputStream(java.io.File file)
Creates a reader for the given file -- which may not necessarily read the contents of the
file on disk.
|
protected java.io.InputStream getInputStream(@NonNull
java.io.File file)
throws java.io.FileNotFoundException
This method is responsible for providing its own buffering, if necessary (e.g. when reading from disk, make sure you wrap the file stream in a buffering input stream.)
file - the file handlejava.io.FileNotFoundException - if the file handle is invalid