Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
ZipReader Class
Namespace
ZipReader Constructors
The following are constructors for ZipReader.
ZipReader(data)
Signature
global ZipReader(Blob data)
Parameters
- data: Type: Blob Apex blob that contains the compressed content.
ZipReader Methods
The following are methods for ZipReader.
extract(entry)
Signature
public blob extract(Compression.ZipEntry entry)
Parameters
- entry: Type: Compression.ZipEntry Species the zip entry to extract and decompress.
getEntries()
Signature
public List<compression.ZipEntry> getEntries()
Return Value
Type: List<Compression.ZipEntry>
getEntriesMap()
Signature
public Map<String,Compression.ZipEntry> getEntriesMap()
Return Value
Type: Map<string,Compression.ZipEntry>
getEntry(name)
Signature
public compression.ZipEntry getEntry(string name)
Parameters
- name: Type: string Name of the zip entry.
getEntryNames()
Signature
public List<String> getEntryNames()
Return Value
Type: List<String>