| Constructor and Description |
|---|
ReaderProvider(Provider<? extends InputStream> streamProvider,
Charset encoding)
Creates a new instance.
|
public ReaderProvider(Provider<? extends InputStream> streamProvider, Charset encoding)
streamProvider - the source InputStream providerencoding - the InputStream encoding charsetpublic Reader open() throws IOException, InterruptedException
Provideropen in interface Provider<Reader>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.