public class ZipReader<OPTIONS> extends RawIteratingFolderReader
RawIteratingFolderReader.FileNameMode
Modifier and Type | Field and Description |
---|---|
protected OPTIONS |
options |
casProperty, casTransformer, einecsProperty, mode, nameProperty
files, index, logger, reader
Constructor and Description |
---|
ZipReader(File zipfile) |
ZipReader(File zipfile,
OPTIONS options) |
ZipReader(InputStream zipstream) |
ZipReader(InputStream zipstream,
OPTIONS options) |
Modifier and Type | Method and Description |
---|---|
static File |
getTempFolder() |
File[] |
unzip(File zipfile,
File directory,
OPTIONS options) |
File[] |
unzip(InputStream zipstream,
File directory,
OPTIONS options) |
protected File |
unzipEntry(ZipEntry entry,
InputStream zis,
File directory) |
protected File |
verifyEntry(File file) |
assignCASRN, assignEINECS, assignName, getItemReader, getMode, next, nextRecord, setFiles, setMode
close, closeItemReader, getFiles, getFormat, getNextReader, hasNext, setReader, setReader, toString
accepts, handleError, handleError, handleError, handleError, remove, setErrorHandler, setReaderMode
addChemObjectIOListener, addSetting, addSettings, fireIOSettingQuestion, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
handleError, handleError, handleError, handleError, setErrorHandler, setReader, setReader, setReaderMode
accepts, addChemObjectIOListener, addSetting, addSettings, close, getFormat, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListener
forEachRemaining, hasNext, remove
protected OPTIONS options
public ZipReader(File zipfile) throws AmbitIOException
AmbitIOException
public ZipReader(File zipfile, OPTIONS options) throws AmbitIOException
AmbitIOException
public ZipReader(InputStream zipstream) throws AmbitIOException
AmbitIOException
public ZipReader(InputStream zipstream, OPTIONS options) throws AmbitIOException
AmbitIOException
public static File getTempFolder() throws AmbitIOException
AmbitIOException
public File[] unzip(File zipfile, File directory, OPTIONS options) throws AmbitIOException
AmbitIOException
public File[] unzip(InputStream zipstream, File directory, OPTIONS options) throws AmbitIOException
AmbitIOException
protected File verifyEntry(File file) throws IOException, net.idea.modbcum.i.exceptions.AmbitException
IOException
net.idea.modbcum.i.exceptions.AmbitException
protected File unzipEntry(ZipEntry entry, InputStream zis, File directory) throws FileNotFoundException, IOException, net.idea.modbcum.i.exceptions.AmbitException
FileNotFoundException
IOException
net.idea.modbcum.i.exceptions.AmbitException
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.