TableReader
public class ZipFileTableReader extends Object implements TableReader
Constructor | Description |
---|---|
ZipFileTableReader(String zipFilename,
String charset) |
Modifier and Type | Method | Description |
---|---|---|
Reader |
getReader(Statement statement,
String tableName) |
Get reader for a database table.
|
List<String> |
getTableNames(Connection connection) |
Returns a list of the names of all tables in the database.
|
String |
getZipFilename() |
|
void |
setExtension(String fileExtension) |
public ZipFileTableReader(String zipFilename, String charset) throws IOException
IOException
public void setExtension(String fileExtension)
public String getZipFilename()
public Reader getReader(Statement statement, String tableName) throws SQLException
TableReader
getReader
in interface TableReader
statement
- JDBC statement being executed.tableName
- name of database table to read.SQLException
- if table does not exist or cannot be read.public List<String> getTableNames(Connection connection) throws SQLException
TableReader
getTableNames
in interface TableReader
connection
- JDBC connection.SQLException
- if there is a problem creating table name list.Copyright © 2018. All rights reserved.