Package com.github.javaparser
Interface Provider
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
LineEndingProcessingProvider,StreamProvider,StringProvider,UnicodeEscapeProcessingProvider
Abstract interface for reading from a stream.
The buffering should be done internally.
-
Method Summary
Modifier and TypeMethodDescriptionintread(char[] aDest, int nOfs, int nLen)Reads characters into an array
-
Method Details
-
read
Reads characters into an array- Parameters:
aDest- Destination buffer. May not benull.nOfs- 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 at the end of the stream
- Throws:
IOException- if reading fails
-