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
provider
encoding
- the InputStream
encoding charsetpublic Reader open() throws IOException, InterruptedException
Provider
open
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 Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.