public class PluginListParser extends Object
Constructor and Description |
---|
PluginListParser() |
Modifier and Type | Method and Description |
---|---|
private static void |
addPluginInformation(List<PluginInformation> ret,
String name,
String url,
String manifest) |
protected static PluginInformation |
createInfo(String name,
String url,
String manifest)
Creates the plugin information object
|
List<PluginInformation> |
parse(InputStream in)
Parses a plugin information document and replies a list of plugin information objects.
|
public PluginListParser()
protected static PluginInformation createInfo(String name, String url, String manifest) throws PluginListParseException
name
- the plugin nameurl
- the plugin download urlmanifest
- the plugin manifestPluginListParseException
- if plugin manifest cannot be parsedpublic List<PluginInformation> parse(InputStream in) throws PluginListParseException
in
- the input stream from which to parsePluginListParseException
- if something goes wrong while parsingprivate static void addPluginInformation(List<PluginInformation> ret, String name, String url, String manifest)