Package com.github.javaparser
Class StringProvider
- java.lang.Object
-
- com.github.javaparser.StringProvider
-
-
Constructor Summary
Constructors Constructor Description StringProvider(String string)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the stream and releases any system resources associated with it.int
read(char[] cbuf, int off, int len)
Reads characters into an array
-
-
-
Constructor Detail
-
StringProvider
public StringProvider(String string)
-
-
Method Detail
-
read
public int read(char[] cbuf, int off, int len) throws IOException
Description copied from interface:Provider
Reads characters into an array- Specified by:
read
in interfaceProvider
- Parameters:
cbuf
- Destination bufferoff
- Offset at which to start storing characters- Returns:
- The number of characters read, or -1 if all read
- Throws:
IOException
-
close
public void close() throws IOException
Description copied from interface:Provider
Closes the stream and releases any system resources associated with it.- Specified by:
close
in interfaceProvider
- Throws:
IOException
-
-