public class

XmlPluginArtifact

extends Object
implements PluginArtifact
java.lang.Object
   ↳ com.atlassian.plugin.XmlPluginArtifact

Class Overview

An XML plugin artifact that is just the atlassian-plugin.xml file

Summary

Public Constructors
XmlPluginArtifact(File xmlFile)
Public Methods
boolean doesResourceExist(String name)
Always returns false, since it doesn't make sense for an XML artifact
InputStream getInputStream()
String getName()
InputStream getResourceAsStream(String name)
Always returns null, since it doesn't make sense for an XML artifact
File toFile()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.PluginArtifact

Public Constructors

public XmlPluginArtifact (File xmlFile)

Public Methods

public boolean doesResourceExist (String name)

Always returns false, since it doesn't make sense for an XML artifact

public InputStream getInputStream ()

Returns
  • a buffered file input stream of the file on disk. This input stream is not resettable.

public String getName ()

public InputStream getResourceAsStream (String name)

Always returns null, since it doesn't make sense for an XML artifact

public File toFile ()