Package org.drools.mvel.parser
Class StreamProvider
- java.lang.Object
-
- org.drools.mvel.parser.StreamProvider
-
-
Constructor Summary
Constructors Constructor Description StreamProvider(java.io.InputStream stream, java.lang.String charsetName)Deprecated.StreamProvider(java.io.InputStream stream, java.nio.charset.Charset charset)StreamProvider(java.io.Reader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread(char[] aDest, int nOfs, int nLen)Reads characters into an array
-
-
-
Constructor Detail
-
StreamProvider
@Deprecated public StreamProvider(java.io.InputStream stream, java.lang.String charsetName) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
StreamProvider
public StreamProvider(java.io.InputStream stream, java.nio.charset.Charset charset)
-
StreamProvider
public StreamProvider(java.io.Reader reader)
-
-
Method Detail
-
read
public int read(char[] aDest, int nOfs, int nLen) throws java.io.IOExceptionDescription copied from interface:ProviderReads characters into an array- Specified by:
readin interfaceProvider- 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:
java.io.IOException- if reading fails
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-