Package org.apache.tika.zip.utils
Class ZipFileHelper
java.lang.Object
org.apache.tika.zip.utils.ZipFileHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.commons.compress.archivers.zip.ZipFileopen(TikaInputStream tis, Charset charset) Opens aZipFileoverTikaInputStream.getSeekableByteChannel(), so in-memory content is read without spilling to disk.
-
Method Details
-
open
public static org.apache.commons.compress.archivers.zip.ZipFile open(TikaInputStream tis, Charset charset) throws IOException Opens aZipFileoverTikaInputStream.getSeekableByteChannel(), so in-memory content is read without spilling to disk. On success the returnedZipFile.close()closes the channel it was built on; on failure the channel is closed before the exception propagates.- Throws:
IOException
-