public class DiskReader extends Object
| Constructor and Description |
|---|
DiskReader(String basepath)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
openStream(String path)
Open an input stream to specifed relative path.
|
String |
toString() |
void |
validate()
Validate the reader.
|
public DiskReader(String basepath)
basepath - The base or root directory path of a yum repo.public void validate()
throws Exception
Exception - When basepath is not a directory, does not exist, or is not readable.public InputStream openStream(String path) throws IOException
path - A relative path to a file within the repo.IOException - On all errors.Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.