com.izforge.izpack
Class PackFile

java.lang.Object
  extended bycom.izforge.izpack.PackFile
All Implemented Interfaces:
java.io.Serializable

public class PackFile
extends java.lang.Object
implements java.io.Serializable

Encloses information about a packed file. This class abstracts the way file data is stored to package.

Author:
Johannes Lehtinen
See Also:
Serialized Form

Field Summary
 long length
          The length of the file in bytes
 long mtime
          The last-modification time of the file.
 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
static int OVERRIDE_ASK_FALSE
           
static int OVERRIDE_ASK_TRUE
           
static int OVERRIDE_FALSE
           
static int OVERRIDE_TRUE
           
static int OVERRIDE_UPDATE
           
 java.lang.String targetPath
          The full path name of the target file
 
Constructor Summary
PackFile()
          Constructs a new uninitialized instance.
PackFile(java.lang.String targetPath, java.util.List osList, long length, long mtime, int override)
          Constructs and initializes a new instance.
PackFile(java.lang.String targetPath, long length)
          Constructs and initializes a new instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetPath

public java.lang.String targetPath
The full path name of the target file


osConstraints

public java.util.List osConstraints
The target operating system constraints of this file


length

public long length
The length of the file in bytes


mtime

public long mtime
The last-modification time of the file.


OVERRIDE_FALSE

public static final int OVERRIDE_FALSE
See Also:
Constant Field Values

OVERRIDE_TRUE

public static final int OVERRIDE_TRUE
See Also:
Constant Field Values

OVERRIDE_ASK_FALSE

public static final int OVERRIDE_ASK_FALSE
See Also:
Constant Field Values

OVERRIDE_ASK_TRUE

public static final int OVERRIDE_ASK_TRUE
See Also:
Constant Field Values

OVERRIDE_UPDATE

public static final int OVERRIDE_UPDATE
See Also:
Constant Field Values

override

public int override
Whether or not this file is going to override any existing ones

Constructor Detail

PackFile

public PackFile()
Constructs a new uninitialized instance.


PackFile

public PackFile(java.lang.String targetPath,
                long length)
Constructs and initializes a new instance.

Parameters:
length - the length of the file
targetPath - Description of the Parameter

PackFile

public PackFile(java.lang.String targetPath,
                java.util.List osList,
                long length,
                long mtime,
                int override)
Constructs and initializes a new instance.

Parameters:
targetPath - the path to install the file to
osList - OS constraints
length - the length of the file
mtime - the last modification time of the file
override - what to do when the file already exists