List of usage examples for org.apache.commons.compress.archivers.zip ZipArchiveEntry clone
public Object clone()
From source file:cz.muni.fi.xklinec.zipstream.PostponedEntry.java
public PostponedEntry(ZipArchiveEntry ze, byte[] byteData, byte[] deflData) { this.ze = (ZipArchiveEntry) ze.clone(); this.defl = deflData.length; this.infl = byteData.length; this.byteData = new byte[byteData.length]; this.deflData = new byte[deflData.length]; System.arraycopy(byteData, 0, this.byteData, 0, byteData.length); System.arraycopy(deflData, 0, this.deflData, 0, deflData.length); this.hashByte = Utils.sha256(this.byteData); this.hashDefl = Utils.sha256(this.deflData); }