uk.co.petertribble.pkgview
Class ContentsParser

java.lang.Object
  extended by uk.co.petertribble.pkgview.ContentsParser

public class ContentsParser
extends java.lang.Object

We parse the Solaris contents file and create two hashes. The first hash is by file, or equivalently by line. The key is the filename, the value is a ContentsFileDetail which stores the metadata and the list of packages that contain this file. The second hash is by package. The key is the package name, and the value is a List of ContentsFileDetail's.


Method Summary
 ContentsFileDetail getFileDetail(java.lang.String s)
           
static ContentsParser getInstance()
           
 ContentsPackage getPackage(java.lang.String pkgname)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ContentsParser getInstance()

getFileDetail

public ContentsFileDetail getFileDetail(java.lang.String s)

getPackage

public ContentsPackage getPackage(java.lang.String pkgname)

main

public static void main(java.lang.String[] args)