zeroslackr.installer
Class List

java.lang.Object
  extended by zeroslackr.installer.List

public class List
extends Object

List Class.

List objects that create Pack objects.

Licensed under GNU GPL (Version 3).

Sources: ini4j's API,

Version:
Jan 18, 2008
Author:
Keripo
See Also:
Pack

Field Summary
(package private)  ArrayList<Pack> extras
           
(package private)  String file
           
(package private)  Ini ini
           
(package private)  ArrayList<Pack> kernel
           
(package private)  ArrayList<Pack> launcher
           
(package private)  ArrayList<Pack> packs
           
(package private)  ArrayList<Pack> userland
           
 
Constructor Summary
List(String file)
          Constructor.
 
Method Summary
private  Pack createPack(String item, String type)
          Creates packs from the lists.
private  void populate(Ini.Section index, ArrayList<Pack> list, String type)
          Retrieves list of packs from the index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ini

Ini ini

file

String file

kernel

ArrayList<Pack> kernel

userland

ArrayList<Pack> userland

launcher

ArrayList<Pack> launcher

packs

ArrayList<Pack> packs

extras

ArrayList<Pack> extras
Constructor Detail

List

public List(String file)
     throws IOException,
            InvalidListFormatException
Constructor.

Parameters:
file - Path to special INI file.
Throws:
IOException
InvalidListFormatException
Method Detail

populate

private void populate(Ini.Section index,
                      ArrayList<Pack> list,
                      String type)
               throws InvalidListFormatException
Retrieves list of packs from the index.

Throws:
InvalidListFormatException
See Also:
List(String iniFile)

createPack

private Pack createPack(String item,
                        String type)
                 throws InvalidListFormatException
Creates packs from the lists.

Throws:
InvalidListFormatException