public class SimpleIndexParser extends Object implements IndexParser
| Constructor and Description |
|---|
SimpleIndexParser() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
generatePackageIndex(File file,
PrintWriter indexWriter,
File root) |
static void |
main(String[] args)
A utility that can build an index file that contains metadata for content found
in a given directory.
|
Map<String,RemotePackageInfo> |
parse(InputStream indexStream,
UrlProvider contentSource)
Given an input stream containing the index data, this will parse that data and return
the parsed information.
|
public Map<String,RemotePackageInfo> parse(InputStream indexStream, UrlProvider contentSource) throws Exception
IndexParserparse in interface IndexParserindexStream - stream containing the index data (it is not necessary for this method to close this)contentSource - the content source where the index file came fromException - if failed to parse the index filepublic static void main(String[] args)
args - directory where the content is found and where the content-index.txt file will be writtenprotected static void generatePackageIndex(File file, PrintWriter indexWriter, File root) throws Exception
ExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.