|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.izforge.izpack.PackFile
public class PackFile
Encloses information about a packed file. This class abstracts the way file data is stored to package.
Field Summary | |
---|---|
private java.util.Map |
additionals
Additional attributes or any else for customisation |
private boolean |
isDirectory
True if file is a directory (length should be 0 or ignored) |
private long |
length
The length of the file in bytes |
private long |
mtime
The last-modification time of the file. |
long |
offsetInPreviousPack
|
private java.util.List |
osConstraints
The target operating system constraints of this file |
private int |
override
Whether or not this file is going to override any existing ones |
static int |
OVERRIDE_ASK_FALSE
|
static int |
OVERRIDE_ASK_TRUE
|
static int |
OVERRIDE_FALSE
|
static int |
OVERRIDE_TRUE
|
static int |
OVERRIDE_UPDATE
|
int |
previousPackNumber
|
(package private) static long |
serialVersionUID
|
java.lang.String |
sourcePath
|
private java.lang.String |
targetPath
The full path name of the target file |
Constructor Summary | |
---|---|
PackFile(java.io.File src,
java.lang.String target,
java.util.List osList,
int override)
Constructs and initializes from a source file. |
|
PackFile(java.io.File src,
java.lang.String target,
java.util.List osList,
int override,
java.util.Map additionals)
Constructs and initializes from a source file. |
Method Summary | |
---|---|
java.util.Map |
getAdditionals()
Returns the additionals map. |
java.lang.String |
getTargetPath()
The full path name of the target file, using '/' as fileseparator. |
boolean |
isBackReference()
|
boolean |
isDirectory()
|
long |
lastModified()
The last-modification time of the file. |
long |
length()
The length of the file in bytes |
java.util.List |
osConstraints()
The target operating system constraints of this file |
int |
override()
Whether or not this file is going to override any existing ones |
void |
setPreviousPackFileRef(int previousPackNumber,
long offsetInPreviousPack)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
public static final int OVERRIDE_FALSE
public static final int OVERRIDE_TRUE
public static final int OVERRIDE_ASK_FALSE
public static final int OVERRIDE_ASK_TRUE
public static final int OVERRIDE_UPDATE
public java.lang.String sourcePath
private java.lang.String targetPath
private java.util.List osConstraints
private long length
private long mtime
private boolean isDirectory
private int override
private java.util.Map additionals
public int previousPackNumber
public long offsetInPreviousPack
Constructor Detail |
---|
public PackFile(java.io.File src, java.lang.String target, java.util.List osList, int override) throws java.io.FileNotFoundException
src
- file which this PackFile describestarget
- the path to install the file toosList
- OS constraintsoverride
- what to do when the file already exists
java.io.FileNotFoundException
- if the specified file does not exist.public PackFile(java.io.File src, java.lang.String target, java.util.List osList, int override, java.util.Map additionals) throws java.io.FileNotFoundException
src
- file which this PackFile describestarget
- the path to install the file toosList
- OS constraintsoverride
- what to do when the file already existsadditionals
- additional attributes
java.io.FileNotFoundException
- if the specified file does not exist.Method Detail |
---|
public void setPreviousPackFileRef(int previousPackNumber, long offsetInPreviousPack)
public final java.util.List osConstraints()
public final long length()
public final long lastModified()
public final int override()
public final boolean isDirectory()
public final boolean isBackReference()
public final java.lang.String getTargetPath()
public java.util.Map getAdditionals()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |