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 void
close()
String
next()
Gets the next statement from this source.
-
-
-
Method Detail
-
next
public String next() throws SQLInputException
Description copied from interface:SQLSource
Gets the next statement from this source.- Specified by:
next
in interfaceSQLSource
- Returns:
- statement or
null
if the end of the source has been reached - Throws:
SQLInputException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-