@FunctionalInterface public interface InputStreamSupplier
| Modifier and Type | Method and Description |
|---|---|
InputStream |
newInputStream()
Opens a new input stream.
|
static InputStreamSupplier |
of(Path file)
Constructs an instance of
InputStreamSupplier based on a file. |
InputStream newInputStream() throws IOException
IOException - if an I/O error occursstatic InputStreamSupplier of(Path file)
InputStreamSupplier based on a file.file - fileInputStreamSupplierCopyright © 2017. All rights reserved.