public class


extends Object
implements PluginArtifact
   ↳ com.atlassian.plugin.JarPluginArtifact

Class Overview

The implementation of PluginArtifact that is backed by a jar file.

See Also


Public Constructors
JarPluginArtifact(File jarFile)
Public Methods
boolean doesResourceExist(String name)
InputStream getInputStream()
String getName()
InputStream getResourceAsStream(String fileName)
File toFile()
String toString()
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.PluginArtifact

Public Constructors

public JarPluginArtifact (File jarFile)

Public Methods

public boolean doesResourceExist (String name)

public InputStream getInputStream ()

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

public String getName ()

public InputStream getResourceAsStream (String fileName)

  • an input stream for the this file in the jar. Closing this stream also closes the jar file this stream comes from.

public File toFile ()

public String toString ()