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