- java.lang.Object
-
- net.sf.jsqlparser.parser.StreamProvider
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.io.Reader
_reader
-
Constructor Summary
Constructors Constructor Description StreamProvider(java.io.InputStream stream)
StreamProvider(java.io.InputStream stream, java.lang.String charsetName)
StreamProvider(java.io.Reader reader)
-
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[] buffer, int off, int len)
Reads characters into an array
-
-
-
Constructor Detail
-
StreamProvider
public StreamProvider(java.io.Reader reader)
-
StreamProvider
public StreamProvider(java.io.InputStream stream) throws java.io.IOException
- Throws:
java.io.IOException
-
StreamProvider
public StreamProvider(java.io.InputStream stream, java.lang.String charsetName) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
read
public int read(char[] buffer, int off, int len) throws java.io.IOException
Description copied from interface:Provider
Reads characters into an array
-
-