Example usage for org.apache.commons.compress.archivers.zip ZipArchiveEntry clone

List of usage examples for org.apache.commons.compress.archivers.zip ZipArchiveEntry clone

Introduction

In this page you can find the example usage for org.apache.commons.compress.archivers.zip ZipArchiveEntry clone.

Prototype

public Object clone() 

Source Link

Document

Overwrite clone.

Usage

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);
}