1 21 22 package org.armedbear.j; 23 24 import java.util.zip.ZipEntry ; 25 26 public final class Compression 27 { 28 private final int type; 29 private String source; 30 private ZipEntry zipEntry; 31 32 public Compression(int type) 33 { 34 this.type = type; 35 } 36 37 public Compression(int type, ZipEntry zipEntry, String source) 38 { 39 this.type = type; 40 this.zipEntry = zipEntry; 41 this.source = source; 42 } 43 44 public int getType() 45 { 46 return type; 47 } 48 49 public ZipEntry getZipEntry() 50 { 51 return zipEntry; 52 } 53 54 public String getSource() 55 { 56 return source; 57 } 58 59 public String getEntryName() 60 { 61 if (zipEntry == null) 62 return null; 63 return zipEntry.getName(); 64 } 65 } 66 | Popular Tags |