| java.lang.Object com.izforge.izpack.PackFile
All known Subclasses: com.izforge.izpack.XPackFile,
PackFile | public class PackFile implements Serializable(Code) | | Encloses information about a packed file. This class abstracts the way file data is stored to
package.
author: Johannes Lehtinen |
Constructor Summary | |
public | PackFile(File baseDir, File src, String target, List<OsConstraint> osList, int override) Constructs and initializes from a source file. | public | PackFile(File src, String relativeSourcePath, String target, List<OsConstraint> osList, int override, Map additionals) Constructs and initializes from a source file. | public | PackFile(File baseDir, File src, String target, List<OsConstraint> osList, int override, Map additionals) Constructs and initializes from a source file.
Parameters: baseDir - The Base directory that is used to search for the files. |
OVERRIDE_ASK_FALSE | final public static int OVERRIDE_ASK_FALSE(Code) | | |
OVERRIDE_ASK_TRUE | final public static int OVERRIDE_ASK_TRUE(Code) | | |
OVERRIDE_FALSE | final public static int OVERRIDE_FALSE(Code) | | |
OVERRIDE_TRUE | final public static int OVERRIDE_TRUE(Code) | | |
OVERRIDE_UPDATE | final public static int OVERRIDE_UPDATE(Code) | | |
offsetInPreviousPack | public long offsetInPreviousPack(Code) | | |
relativePath | protected String relativePath(Code) | | The Path of the file relative to the given (compiletime's) basedirectory.
Can be resolved while installing with either current working directory or directory of "installer.jar".
|
serialVersionUID | final static long serialVersionUID(Code) | | |
sourcePath | public transient String sourcePath(Code) | | Only available when compiling. Makes no sense when installing, use relativePath instead.
|
PackFile | public PackFile(File baseDir, File src, String target, List<OsConstraint> osList, int override) throws FileNotFoundException(Code) | | Constructs and initializes from a source file.
Parameters: baseDir - the baseDirectory of the Fileselection/compilation or null Parameters: src - file which this PackFile describes Parameters: target - the path to install the file to Parameters: osList - OS constraints Parameters: override - what to do when the file already exists throws: FileNotFoundException - if the specified file does not exist. |
PackFile | public PackFile(File src, String relativeSourcePath, String target, List<OsConstraint> osList, int override, Map additionals) throws FileNotFoundException(Code) | | Constructs and initializes from a source file.
Parameters: src - file which this PackFile describes Parameters: relativeSourcePath - the path relative to the compiletime's basedirectory, use computeRelativePathFrom(File, File) to compute this. Parameters: target - the path to install the file to Parameters: osList - OS constraints Parameters: override - what to do when the file already exists Parameters: additionals - additional attributes throws: FileNotFoundException - if the specified file does not exist. |
PackFile | public PackFile(File baseDir, File src, String target, List<OsConstraint> osList, int override, Map additionals) throws FileNotFoundException(Code) | | Constructs and initializes from a source file.
Parameters: baseDir - The Base directory that is used to search for the files. This is used to build the relative path's Parameters: src - file which this PackFile describes Parameters: target - the path to install the file to Parameters: osList - OS constraints Parameters: override - what to do when the file already exists Parameters: additionals - additional attributes throws: FileNotFoundException - if the specified file does not exist. |
computeRelativePathFrom | public static String computeRelativePathFrom(File baseDir, File file)(Code) | | Builds the relative path of file to the baseDir.
Parameters: baseDir - The Base Directory to build the relative path from Parameters: file - the file inside basDir null if file is not a inside baseDir |
getAdditionals | public Map getAdditionals()(Code) | | Returns the additionals map.
additionals |
getCondition | public String getCondition()(Code) | | the condition |
getRelativeSourcePath | public String getRelativeSourcePath()(Code) | | The Path of the file relative to the given (compiletime's) basedirectory.
Can be resolved while installing with either current working directory or directory of "installer.jar"
|
getTargetPath | final public String getTargetPath()(Code) | | The full path name of the target file, using '/' as fileseparator.
|
hasCondition | public boolean hasCondition()(Code) | | |
isBackReference | final public boolean isBackReference()(Code) | | |
isDirectory | final public boolean isDirectory()(Code) | | |
lastModified | final public long lastModified()(Code) | | The last-modification time of the file.
|
length | final public long length()(Code) | | The length of the file in bytes
|
osConstraints | final public List<OsConstraint> osConstraints()(Code) | | The target operating system constraints of this file
|
override | final public int override()(Code) | | Whether or not this file is going to override any existing ones
|
setCondition | public void setCondition(String condition)(Code) | | Parameters: condition - the condition to set |
setPreviousPackFileRef | public void setPreviousPackFileRef(String previousPackId, Long offsetInPreviousPack)(Code) | | |
|
|