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.
ZipEntry Class
Namespace
ZipEntry Methods
The following are methods for ZipEntry.
equals(obj)
Signature
public Boolean equals(Object obj)
Parameters
- obj: Type: Object
Return Value
Type: Boolean
hashcode()
Signature
public Integer hashcode()
Return Value
Type: Integer
getComment()
Signature
public string getComment()
Return Value
Type: string
getCompressedSize()
Signature
public long getCompressedSize()
Return Value
Type: long
getContent()
Signature
public blob getContent()
Return Value
Type: blob
getCrc()
Signature
public long getCrc()
Return Value
Type: long
getLastModifiedTime()
Signature
public Datetime getLastModifiedTime()
Return Value
Type: Datetime
getMethod()
Signature
public Compression.Method getMethod()
Return Value
Type: Compression.Method
Uses values from the Method enum and indicates whether the zip entry has DEFLATED or STORED method.
getUncompressedSize()
Signature
public long getUncompressedSize()
Return Value
Type: long
setComment(comment)
Signature
public Compression.ZipEntry setComment(String comment)
Parameters
- comment: Type: String
Return Value
Type: Compression.ZipEntry
setContent(blob)
Signature
public Compression.ZipEntry setContent(Blob blob)
Parameters
- blob: Type: Blob
Return Value
Type: Compression.ZipEntry
setLastModifiedTime(modTime)
Signature
public Compression.ZipEntry setLastModifiedTime(Datetime modTime)
Parameters
- modTime: Type: Datetime
Return Value
Type: Compression.ZipEntry
setMethod(method)
Signature
public Compression.ZipEntry setMethod(Compression.Method method)
Parameters
- method: Type: Compression.Method Uses the Method enum values and sets the compression method as DEFLATED or STORED.
Return Value
Type: Compression.ZipEntry
toString()
Signature
public string toString()
Return Value
Type: string