com.atlassian.plugin.parsers
Class XmlDescriptorParserFactory

java.lang.Object
  extended by com.atlassian.plugin.parsers.XmlDescriptorParserFactory
All Implemented Interfaces:
DescriptorParserFactory

public class XmlDescriptorParserFactory
extends java.lang.Object
implements DescriptorParserFactory

Creates XML descriptor parser instances.

See Also:
XmlDescriptorParser, DescriptorParserFactory

Constructor Summary
XmlDescriptorParserFactory()
           
 
Method Summary
 DescriptorParser getInstance(java.io.InputStream source)
          Creates a new DescriptorParser for getting plugin descriptor information from the provided source data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlDescriptorParserFactory

public XmlDescriptorParserFactory()
Method Detail

getInstance

public DescriptorParser getInstance(java.io.InputStream source)
                             throws PluginParseException
Description copied from interface: DescriptorParserFactory
Creates a new DescriptorParser for getting plugin descriptor information from the provided source data.

Specified by:
getInstance in interface DescriptorParserFactory
Parameters:
source - the stream of data which represents the descriptor. The stream will only be read once, so it need not be resettable.
Returns:
an instance of the descriptor parser tied to this InputStream
Throws:
PluginParseException - if there was a problem creating the descriptor parser due to an invalid source stream.


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.