public class StringProvider extends Object implements Provider
| Constructor and Description |
|---|
StringProvider(String sStr) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read(char[] aDest,
int nOfs,
int nLen)
Reads characters into an array
|
public StringProvider(String sStr)
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()
close in interface Closeableclose in interface AutoCloseableCopyright © 2007–2020. All rights reserved.