uk.co.petertribble.pkgview
Class ContentsParser
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)