next up previous contents
Next: Class SubpackageRepo Up: Design Previous: Class StackState   Contents

Class PackageRepo

PackageRepo is a concrete subclass of class Repo. It provides access to package resources.

Method getResource(name) returns the resource with the specified name. Method getFile(name) returns a File object if the resource with the same name is a file; otherwise, it throws UnsupportedOperationException. These operations are illustrated in figures 12 and 13.

Figure 12: Operation PackageRepo.getFile(name)
\includegraphics[scale=.4]{packagefile.eps}

Figure 13: Operation PackageRepo.getResource(name)
\includegraphics[scale=.4]{packageresource.eps}