Class PluginDescriptorReaderImpl
java.lang.Object
org.craftercms.commons.plugin.impl.PluginDescriptorReaderImpl
- All Implemented Interfaces:
PluginDescriptorReader
Default implementation of
PluginDescriptorReader that parses YAML files.- Since:
- 3.1.1
- Author:
- joseross
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(InputStream is) Parses aPluginDescriptorfrom the given streamParses aPluginDescriptorfrom the given reader
-
Constructor Details
-
PluginDescriptorReaderImpl
public PluginDescriptorReaderImpl()
-
-
Method Details
-
read
Parses aPluginDescriptorfrom the given stream- Specified by:
readin interfacePluginDescriptorReader- Parameters:
is- the stream to parse- Returns:
- the plugin descriptor
- Throws:
PluginException- if there is any error parsing the stream
-
read
Parses aPluginDescriptorfrom the given reader- Specified by:
readin interfacePluginDescriptorReader- Parameters:
reader- the reader to parse- Returns:
- the plugin descriptor
- Throws:
PluginException- if there is any error parsing the reader
-