1 18 package com.izforge.izpack; 19 20 import java.io.File ; 21 import java.io.FileNotFoundException ; 22 import java.util.List ; 23 import java.util.Map ; 24 25 import com.izforge.izpack.PackFile; 26 27 33 public class XPackFile extends PackFile 34 { 35 36 private static final long serialVersionUID = 5875050264763504283L; 37 38 protected long archivefileposition; 39 40 protected PackFile packfile; 41 42 49 public XPackFile(File baseDir, File src, String target, List osList, int override) 50 throws FileNotFoundException 51 { 52 super(baseDir, src, target, osList, override); 53 this.archivefileposition = 0; 54 } 55 56 64 public XPackFile(File baseDir, File src, String target, List osList, int override, Map additionals) 65 throws FileNotFoundException 66 { 67 super(baseDir, src, target, osList, override, additionals); 68 this.archivefileposition = 0; 69 } 70 71 public XPackFile(PackFile packf) throws FileNotFoundException 72 { 73 super(new File (packf.sourcePath), packf.relativePath, packf.getTargetPath(), packf.osConstraints(), packf 74 .override(), packf.getAdditionals()); 75 this.archivefileposition = 0; 76 this.packfile = packf; 77 } 78 79 public long getArchivefileposition() 80 { 81 return archivefileposition; 82 } 83 84 public void setArchivefileposition(long archivefileposition) 85 { 86 this.archivefileposition = archivefileposition; 87 } 88 89 public PackFile getPackfile() 90 { 91 return packfile; 92 } 93 94 public void setPackfile(PackFile packfile) 95 { 96 this.packfile = packfile; 97 } 98 99 } | Popular Tags |