Package com.github.javaparser
Class StreamProvider
java.lang.Object
com.github.javaparser.StreamProvider
- All Implemented Interfaces:
Provider,Closeable,AutoCloseable
NOTE : This generated class can be safely deleted if installing in a GWT installation (use StringProvider instead)
-
Constructor Summary
ConstructorsConstructorDescriptionStreamProvider(InputStream stream, String charsetName)Deprecated.StreamProvider(InputStream stream, Charset charset)StreamProvider(Reader reader) -
Method Summary
-
Constructor Details
-
StreamProvider
Deprecated.- Throws:
IOException
-
StreamProvider
-
StreamProvider
-
-
Method Details
-
read
Description copied from interface:ProviderReads characters into an array- Specified by:
readin interfaceProvider- 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
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-