public class StreamProvider extends Object implements Provider
Constructor and Description |
---|
StreamProvider(InputStream stream,
Charset charset) |
StreamProvider(InputStream stream,
String charsetName)
Deprecated.
|
StreamProvider(Reader reader) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
read(char[] aDest,
int nOfs,
int nLen)
Reads characters into an array
|
@Deprecated public StreamProvider(InputStream stream, String charsetName) throws IOException
IOException
public StreamProvider(InputStream stream, Charset charset)
public StreamProvider(Reader reader)
public int read(char[] aDest, int nOfs, int nLen) throws IOException
Provider
read
in interface Provider
aDest
- Destination buffernOfs
- Offset at which to start storing characters. Must be ≥ 0.nLen
- The maximum possible number of characters to read. Must be ≥ 0.IOException
- if reading failspublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2007–2020. All rights reserved.