public class

JarPluginArtifact

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

Class Overview

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

See Also

Summary

Public Constructors
JarPluginArtifact(File jarFile)
Public Methods
boolean doesResourceExist(String name)
InputStream getInputStream()
String getName()
InputStream getResourceAsStream(String fileName)
File toFile()
String toString()
[Expand]
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 ()

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

public String getName ()

public InputStream getResourceAsStream (String fileName)

Returns
  • 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 ()