|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.rhq.enterprise.server.plugins.yum.DiskReader
public class DiskReader
The disk reader is a yum repo reader used to read metadata and bits from an existing yum repo that is located on a filesystem.
| Constructor Summary | |
|---|---|
DiskReader(java.lang.String basepath)
Constructor. |
|
| Method Summary | |
|---|---|
java.io.InputStream |
openStream(java.lang.String path)
Open an input stream to specifed relative path. |
java.lang.String |
toString()
|
void |
validate()
Validate the reader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DiskReader(java.lang.String basepath)
basepath - The base or root directory path of a yum repo.| Method Detail |
|---|
public void validate()
throws java.lang.Exception
java.lang.Exception - When basepath is not a directory, does not exist, or is not readable.
public java.io.InputStream openStream(java.lang.String path)
throws java.io.IOException
path - A relative path to a file within the repo.
java.io.IOException - On all errors.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||