com.izforge.izpack
Class Pack

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

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

Represents a Pack.

Author:
Julien Ponge
See Also:
Serialized Form

Field Summary
 java.lang.String description
          The pack description.
private static java.text.DecimalFormat formatter
          Used of conversions.
private static double GIGABYTES
          Used of conversions.
private static double KILOBYTES
          Used of conversions.
private static double MEGABYTES
          Used of conversions.
 java.lang.String name
          The pack name.
 long nbytes
          The bumber of bytes contained in the pack.
 java.util.List osConstraints
          The target operation system of this pack
 boolean preselected
          Whether this pack is suggested (preselected for installation).
 boolean required
          True if the pack is required.
 
Constructor Summary
Pack(java.lang.String name, java.lang.String description, java.util.List osConstraints, boolean required, boolean preselected)
          The constructor.
 
Method Summary
static java.lang.String toByteUnitsString(int bytes)
          Convert bytes into appropiate mesaurements.
 java.lang.String toString()
          To a String (usefull for JLists).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public java.lang.String name
The pack name.


description

public java.lang.String description
The pack description.


osConstraints

public java.util.List osConstraints
The target operation system of this pack


required

public boolean required
True if the pack is required.


nbytes

public long nbytes
The bumber of bytes contained in the pack.


preselected

public boolean preselected
Whether this pack is suggested (preselected for installation).


KILOBYTES

private static final double KILOBYTES
Used of conversions.

See Also:
Constant Field Values

MEGABYTES

private static final double MEGABYTES
Used of conversions.

See Also:
Constant Field Values

GIGABYTES

private static final double GIGABYTES
Used of conversions.

See Also:
Constant Field Values

formatter

private static final java.text.DecimalFormat formatter
Used of conversions.

Constructor Detail

Pack

public Pack(java.lang.String name,
            java.lang.String description,
            java.util.List osConstraints,
            boolean required,
            boolean preselected)
The constructor.

Parameters:
name - The pack name.
description - The pack description.
required - Indicates wether the pack is required or not.
Method Detail

toString

public java.lang.String toString()
To a String (usefull for JLists).

Returns:
The String representation of the pack.

toByteUnitsString

public static java.lang.String toByteUnitsString(int bytes)
Convert bytes into appropiate mesaurements.

Parameters:
bytes - A number of bytes to convert to a String.
Returns:
The String-converted value.