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
IOExceptionpublic StreamProvider(InputStream stream, Charset charset)
public StreamProvider(Reader reader)
public int read(char[] aDest,
int nOfs,
int nLen)
throws IOException
Providerread in interface ProvideraDest - Destination buffer. May not be null.nOfs - 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 Closeableclose in interface AutoCloseableIOExceptionCopyright © 2007–2025. All rights reserved.