public class ZipFileReader extends Object implements Closeable
| Constructor and Description |
|---|
ZipFileReader(String archivePath)
Creates an instance for zip file reading.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Set<String> |
getFileNames()
Get all file entries paths inside the reading zip file.
|
InputStream |
readFromZip(String fileName)
Read single file from zip.
|
public ZipFileReader(String archivePath) throws IOException
archivePath - the path to the zip file to read
IOException - if some I/O exception occurs
public Set<String> getFileNames()
Set of all file entries paths
public InputStream readFromZip(String fileName) throws IOException
fileName - the file path inside zip to read
InputStream represents read file content
IOException - if some I/O exception occurs
public void close()
throws IOException
close in interface Closeable
close in interface AutoCloseable
IOException
Copyright © 1998–2022 iText Group NV. All rights reserved.