|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.sun.pkg.client.Catalog
public class Catalog
A Catalog is the list of packages (Fmris) that are available
from an authority.
| Constructor Summary | |
|---|---|
Catalog(Image img,
java.lang.String authname)
|
|
| Method Summary | |
|---|---|
java.util.List<Fmri> |
getFmris()
Get the Fmris that are int his catalog. |
Fmri |
getMatchingFmri(Fmri p)
Get the newest matching FMRI for the given package |
Fmri |
getMatchingFmri(java.lang.String p)
Get the newest matching FMRI for the given package |
void |
refresh()
Refresh the local content of the catalog by downloading it from the repository. |
int |
size()
Get the size of the catalog, i.e., the number of FMRIs contained in it. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Catalog(Image img,
java.lang.String authname)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void refresh()
throws java.io.IOException
java.io.IOExceptionpublic Fmri getMatchingFmri(java.lang.String p)
p - the name of the desired packagepublic Fmri getMatchingFmri(Fmri p)
p - the name of the desired packagepublic int size()
public java.util.List<Fmri> getFmris()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||