public class FileInputStreamProvider extends Object implements Provider<FileInputStream>
FileInputStream.| Constructor and Description |
|---|
FileInputStreamProvider(File file)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
FileInputStream |
open()
Returns a new resource.
|
String |
toString() |
public FileInputStreamProvider(File file)
file - the source filepublic FileInputStream open() throws IOException, InterruptedException
Provideropen in interface Provider<FileInputStream>IOException - if failed to provide a new resourceInterruptedException - if interrupted while preparing the resourcepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.