| |
|
| java.lang.Object workbench.db.importer.ImportFileHandler
ImportFileHandler | public class ImportFileHandler (Code) | | This class manages access to an import file and possible attachments that
were created by
workbench.db.exporter.DataExporter
The import file can either be a regular file, or stored in a ZIP archive.
author: support@sql-workbench.net |
ImportFileHandler | public ImportFileHandler()(Code) | | |
getAttachedFileStream | public InputStream getAttachedFileStream(File attachmentFile) throws IOException(Code) | | When exporting LOB data
workbench.db.exporter.DataExporter will write
the LOB data for each row/column into separate files. These files might
reside in a second ZIP archive.
Parameters: attachmentFile - the attachment to read an InputStream to read the attachment |
setMainFile | public void setMainFile(File mainFile, String enc) throws IOException(Code) | | Define the main input file used by this handler.
If the file is a ZIP Archive getMainFileReader() will
return a Reader for the first file in the archive.
(DataExporter creates an archive with a single
file in it).
Parameters: mainFile - the basefile Parameters: enc - the encoding for the basefile |
|
|
|