Package org.soulwing.jdbc.source
Class ReaderSQLSource
- java.lang.Object
-
- org.soulwing.jdbc.source.ReaderSQLSource
-
- All Implemented Interfaces:
Closeable,AutoCloseable,SQLSource
- Direct Known Subclasses:
ResourceSQLSource,StringSQLSource
public class ReaderSQLSource extends Object implements SQLSource
- Author:
- Carl Harris
-
-
Constructor Summary
Constructors Constructor Description ReaderSQLSource(Reader reader)ReaderSQLSource(Reader reader, Scanner scanner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Stringnext()Gets the next statement from this source.
-
-
-
Method Detail
-
next
public String next() throws SQLInputException
Description copied from interface:SQLSourceGets the next statement from this source.- Specified by:
nextin interfaceSQLSource- Returns:
- statement or
nullif the end of the source has been reached - Throws:
SQLInputException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-