Package com.github.javaparser
Interface Provider
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
StreamProvider,StringProvider,UnicodeEscapeProcessingProvider
public interface Provider extends Closeable
Abstract interface for reading from a stream. The buffering should be done internally.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intread(char[] aDest, int nOfs, int nLen)Reads characters into an array
-
-
-
Method Detail
-
read
int read(char[] aDest, int nOfs, int nLen) throws IOExceptionReads characters into an array- Parameters:
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.- Returns:
- The number of characters read, or -1 if all read
- Throws:
IOException- if reading fails
-
-